Skip to content
Sign upLog in
← Back to Community

tab error

Profile icon
PixelNinjaHacker

hi,

I have no idea why i have an error on line 14. Any ideas?

thanks!

Answered by TheDrone7 [earned 5 cycles]
View Answer
Voters
Profile icon
willylaiccc
Profile icon
Loganjackson06
Profile icon
almostStatic
Profile icon
kamalhasan
Profile icon
_RAUL
Profile icon
PixelNinja
Comments
hotnewtop
Profile icon
TheDrone7

The indentation has to be applied after the colon. So according to that the correct format would be

cnt = 1 while line: print("Line {}: {}".format(cnt, line.strip()))
Profile icon
PixelNinja

@TheDrone7
Hi, I have added this but now have more any ideas?

Profile icon
TheDrone7

@RossJames
I believe you need to declare variables outside of that scope, although I am not sure.

Profile icon
almostStatic

@RossJames
Error on Line 14? Maybe you don't need an empty line or you have to declare something. I would recommend using an online Python code checker.

Profile icon
kamalhasan

what language is this
also check out tic tac toe with bots

Profile icon
AllAwesome497

Ah, ok. now ur current problem
is on one line, or maybe more, u didn't use tabs/spaces whichever u used everywhere else