HELP its the error thingy


for i in range (1):

File “”, line 13
for i in range (1):
IndentationError: unindent does not match any outer indentation level

Hey @JoshuaHussein, welcome to the forums!

You would need to do this :

for i in range(1):
 do something like print()

And after the two points you need to create a new line and put a space!


Welcome to the community, @JoshuaHussein!

First things first, could you send a link to your Repl?
Second, why are you using for i in range(1):? It just loops once, the same as using code without it.
Third, an IndentationError like that means that you might need to indent/unindent that specific line of code. This is because Python has meaningful whitespace.


The easiest solution is to use the keyboard shortcut Ctrl S to save your program while fixing these formatting errors simultaneously format your code, thus fixing these errors. As the others mentioned, in Python, spaces matter. I also agree that there is no need to make a loop run once as it could save code by not using a loop at all. Giving us the link to your Repl would also be really helpful

1 Like

Replit autosaves your files. Ctrl + S does not save your files, it instead formats them.

1 Like

You’re right. I messed up on that because on every other program that was ever written Ctrl S saves stuff. Sorry about that. I’ll edit that.

I FIXED IT THANKSsssssssssssssssssss

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.