0
what's wrong with this else ??
https://code.sololearn.com/cLKa7t15J0a4/#py can someone explain why I am getting a syntax error at line 10 and help to make this code still smarter.
5 Answers
+ 5
You have to take care of your whitespaces!
Indentation error means a.line starts with a wrong number of whitespaces...
correct:
for i in range(0,11,2):
if i<=4:
print("Low")
else:
print("High")
This won't work:
for i in range(0,11,2):
if i<=4:
print("Low")
else:
print("High")
+ 4
Hi,
it is an indent error
+ 3
now it works
enter three lines with yes to test.
+ 3
Match the indentation, all if else statements should have the same indentation
+ 1
Oma Falk
So what should I do ??