Ask coding questions

← Back to all posts
Why am i getting a syntax error?
ethanwhite21022 (2)

For some reason every line after line 62 is giving syntax error for some strange reason. When i comment out one line the next gets a syntax error. This happens even at line 73 which is print('Start'). Any help would be appreciated, and sorry for the spaghetti code.

Comments
hotnewtop
westohotza (0)

Line 62 needs a parenthesis:

 print('Player '+str(Players[0][player])+' gives player '+str(Board[2][Players[1][player]])+' '+str(Board[3][Tile][Board[4][Tile]]))

Line 69 delete main :

# main

Or
Line 69 make it as a function :

main():