5 Antworten
+ 2
i used the code from solo learn it says syntax error
+ 1
the author probably made an error in the syntax... try this....
x=15
y=20
if x>10 or y>15:
print ("Larger than 10")
elif x>10:
print("Shorter than 10")
elif 4>x:
print ("4 is not larger than X")
+ 1
when i wrote elif it highlited in red and in bottom it says Syntax error:invalid syntax
+ 1
double check you are in python environment... sounds like you could be in another environment.
0
then you made a syntax error.
No code, no help for an error.