name? ")
age=float(input("how old are you "+name+" ? "))
year=float(input("which year is it this year??? "))
years_till_100=(100-age)
year_they_were_born=(year)-(age)
A_1=input("do you want your years left till you are 100 year old?(yes or no) ")
if A_1.upper()=="YES":
print("yuo have "+str(int(years_till_100))+" years till you are 100 years old")
elif A_1.upper()=="NO":
print("ok then")
else:
print("error")
A_2 = input("do you want the year you were born?(yes or no) ")
if A_2.upper()=="YES":
print("you were born in "+str(int(year_they_were_born)))
elif A_2.upper()=="NO":
print("ok then:/")
else:
print(error)
the_year_when_100=(year_they_were_born)+(100)
A_3=str(input("do you wanna know the year you will be 100?!(yes or no) "))
if A_3.upper()=="YES":
print(str(int(the_year_when_100)))
elif A_3.upper()=="NO":
print("ok...then")
else:
print("ERROR")
input("closeing the app bye!!! ")
!paste
To post more than a few lines of code, use a pastebin like: hastebin.com dpaste.org linkode.org bin.kv2.dev If you are stuck in a terminal, you can use ix.io or paste.rs to paste from the CLI: <command to print output> |& curl -F 'f:1=<-' ix.io <command to print output> |& curl --data-binary @- https://paste.rs
Please use pastebin
Обсуждают сегодня