Can someone please fix this line of python code for me? I am so confused as to w
ID: 3905730 • Letter: C
Question
Can someone please fix this line of python code for me? I am so confused as to what the error is.
6 7 8 9 Encountered " 'Move not possible!" at line 18, column 19. Was expecting one of: ... "("... roi... " ... "/"... "I"... ""... "%" ... "A" ... "T"... "&"... ""... ">"... " "... ***="... "or" ... "and"... "."... "+"... ". "!="... "+ "... "not"... "is" ... X Encounterec O row 1 row 2 row 3 xsturn osturn win printingrows game 13 11e def xsturno: row - input('X, which row? place - input('X, which place?!) - 1 if row - 1: if row1[place] -- '/': row1[place] - 'X' else: print Move.net..cessible!! xsturno elif row == 2: if row[place] -- ': row2[place] - 'X' else: print 'Move not possible!' xsturno elif row == 3: if row3[place] -- 7': row3[place] - 'X' else: print 'Move not possible! xsturnoExplanation / Answer
If using python 3+ , use print() i.e use the round parenthesis.
Change the code to
print('Move not possible!')
==========
Also in that case, to get int input you may want to use
row = int(input('X, which row? '))
place = int(intput('X, which place? ')) - 1
=============
If still getting same errror , please give me your full code... few lines upto line 10 are not clearly visible