Ask coding questions

← Back to all posts
Why does repl.it say "unindent does not match any other indent level"?
Steven_The_GuyT (304)

On line 15, repl.it says "unindent does not match any other indent level". Does anyone know why it says that? It looks like it does match the if statement above it.
https://repl.it/@Steven_The_GuyT/Dice-Gambling

Answered by mat1 (4378) [earned 5 cycles]
View Answer
Comments
hotnewtop
mat1 (4378)

In line 15 you have a double space instead of tab.
https://storage.googleapis.com/replit/images/1557355353866_2bf36c6f4677d336e5237c3664ca8ccc.pn
Please mark my comment as the answer if it helped. Thanks!

Steven_The_GuyT (304)

@mat1 I think I might need help again. I tried calling my function, by doing roll(), but it doesn't work.
https://repl.it/@Steven_The_GuyT/Dice-Gambling

mat1 (4378)

@Steven_The_GuyT On line 4 you're calling roll() before it's defined. Move it to line 30 instead.

VibeDog621 (0)

im also having the same problem can anyone help me https://replit.com/@VibeDog621/VibeBot#main.py