Hey I could really use some help. https://gist.github.com/801caa81a6011d5c83cb8501db6904b6
Every time I go to run the code a syntax error pops up for line 6 and I’m not understanding what I did wrong.
Hello! You can’t have code between your if
and elif
or else
. That means you must keep everything within the if
, elif
or else
:
if condition:
print("Yes")
elif condition2:
print("Non")
#This works. Notice the indentation.
if condition:
print("Yes")
elif condition2:
print("No")
#This doesn't work. Notice the indentation of the first print.
I hope this helps!
3 Likes