Skip to content
← Back to Community
Tic Tac Toe
Profile icon
BishyBash

Can someone help me fix this??

Voters
Profile icon
alexiia
Profile icon
aidroidtechusa
Profile icon
JadenTaylor1
Profile icon
BishyBash
Comments
hotnewtop
Profile icon
ArchieMaclean
  1. You need to un-inent lines 1-20 EDIT: actually, these should be indented, but you need to add a def print_board(board): beforehand.
  2. You should have parentheses ( ) around all calls to print, like print("hello, world") because you're in python3, not python2
  3. You shouldn't have commas , after your print statements

Alternatively, just do point 1 (and possibly point 2) and change to python 2.
Please mark this as the answer if this solved your problem :)

Profile icon
BishyBash

Thanks for your comments, but I am officialy quitting coding. I have started working as a surgeon at a hospital

Profile icon
Jaythrex

For line 2, you have an unexpected indentation error. You should unindent both indents, as well as the rest of the code.

Profile icon
aidroidtechusa

idk how to fix but other than that looks good

Profile icon
Tom_D_06

oo
i

Profile icon
Lord_Poseidon

No it's not an indentation error. You missed writing the fist line def print_board(board): or something. A simple copy/paste error

Profile icon
BishyBash

@Lord_Poseidon it doesnt work plu s i didnt copy and paste :(

Profile icon
Lord_Poseidon

@TheDrone7 actually no. I just assumed he worked somewhere else and then put it here. Also, @Bishman_k, you chose the wrong version of python