Ask coding questions

← Back to all posts
IndentationError that I’m not sure why I’m getting
Archonic7 (2)

I’m currently developing a simple game using the Pygame library for python. However, my program throws an IndentationError whenever I run it at line 67. I’ve checked the indentation multiple times, can anyone tell me why this is happening? Thanks!

Answered by LAMAQDAHODWALA (62) [earned 5 cycles]
View Answer
Comments
hotnewtop
LAMAQDAHODWALA (62)

This isn't a bug in your code, but instead a bug on Repl's side. I used to copy the indentation of the line above the problem line (line 66 in your case), then adjust so that the indentation is correct