Advertisement
FelipeNeto2

Return no python

Dec 9th, 2019
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. def calculate_age(current_year, birth_year):
  2.   age = current_year - birth_year
  3.  
  4.   return age
  5.  
  6. my_age = calculate_age(2049, 1993)
  7. dads_age = calculate_age(2049, 1953)
  8.  
  9. 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