Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def calculate_age(current_year, birth_year):
- age = current_year - birth_year
- return age
- my_age = calculate_age(2049, 1993)
- dads_age = calculate_age(2049, 1953)
- print("I am {} years old and my dad is {} years old".format(my_age, dads_age))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement