Answer the question
In order to leave comments, you need to log in
Why is result empty?
print ("Документ содержит информацию предназначенную для лиц старше 18 лет!")
year = int (input("Сколько вам лет: "))
result = None
if year > 18 :
result = "Выполняется загрузка.."
elif year < 18:
result = "Вам нет 18 лет!"
print (result)
Answer the question
In order to leave comments, you need to log in
Well, it's quite simple. year = 18.
Both conditions fail.
Use if year >= 18:
and easyelse:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question