Untitled
unknown
python
3 years ago
264 B
6
Indexable
age = input("What is your current age\n") days = 365 week = 52 months = 12 age = int(age) dead = 90 sum = dead - age daysLeft = sum * 365 weekLeft = sum * 52 monthsLeft = sum * 12 print(f"You have {daysLeft} days, {weekLeft} weeks, and {monthsLeft} months left.")
Editor is loading...