Python-exercises/ life_in_weeks.py

7 lines
No EOL
117 B
Python

def life_in_weeks(age):
weeks = 4680 - (age * 52)
print(f"You have {weeks} weeks left.")
life_in_weeks(20)