Ask coding questions

← Back to all posts
why am i getting an error saying that python expected an indent?
DillanBowman

there is no "if", "while", "elif", "def" or "else" statement there. what am i doing wrong?

btw the comments are notes to myself for re-creating the original pvz.

Answered by SixBeeps [earned 5 cycles]
View Answer
Voters
DillanBowman
Comments
hotnewtop
SixBeeps

Line 11, you started a while loop but put nothing in it. Thus, it's expecting that Line 19 is supposed to be in there, but it's not indented correctly.

DillanBowman

@SixBeeps ok, thank you. i didn't add anthing to the while loop on line 11 (linked to a "def setslot()") because i'm still trying to figure out how to implement it. enjoy your 5 cycles!