Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
1. Extra tabs
2. elif is not used without arguments. Either use else or pass an extra comparison
Either
age = int(input("Сколько вам лет?"))
if age < 100 :
print("понятненько")
else:
print ("А?")
age = int(input("Сколько вам лет?"))
if age < 100 :
print("понятненько")
elif age > 150:
print ("А?")
https://pythonworld.ru/osnovy/instrukciya-if-elif-...
Found in just 5 seconds
age = int(input("Сколько вам лет?"))
if age < 100:
print("понятненько")
else:
print("А?")
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question