0
Why do I keep getting SyntaxError: invalid syntax in line 2?
Here is my code: x=4 If x==5: Print("hello") elif: x==7: Print("greeting") elif: x==4: print("HI")
1 Réponse
+ 4
x=4
if x==5:
Print("hello")
elif x==7:
Print("greeting")
elif x==4:
print("HI")
identations are very important in python
also there were obsolete ':' just after the elif statements
and the first if was with a capital I