Why am getting an "elif" syntax error showing invalid syntax in python [closed]

The identation is incorrect and causing the error. Also, the and true does not serve anything there. You can try the following code:

a = 200
b = 33
c = 500
if a < b:
  print("Both conditions are True")
elif a > b:
  print("f")

Browse More Popular Posts

Leave a Comment