Ask coding questions

← Back to all posts
Pygame error indentation
emilienBUSSON

https://storage.googleapis.com/replit/images/1554129826675_c7b1aff03b9fc7d45c1f1651ab0d3383.pn
https://storage.googleapis.com/replit/images/1554129827030_acaa0d5b1d75cede96813497784f83c9.pn
Hello !
I'm writing in Pygame, but I don't reach to find where I've done an error...
May someone help me ?
Thanks
Emilien

Answered by a5rocks [earned 5 cycles]
View Answer
Voters
emilienBUSSON
Comments
hotnewtop
a5rocks

Python is really, REALLY, picky with indentation. As in, you can't use spaces and tabs in the same file. So what I would recommend is copying your code to your favorite text editor, finding all spaces, and replacing with tabs.

PS Your problem is probably on line 37 or 36's indentation

emilienBUSSON

@a5rocks Thanks !
In using a text editor, I could see a little space in the loop, hidden with repl.it...
Have a nice day