-
-
Save codecademydev/89a69704dcbac605a19efaf2947a83ac to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def calculate_age(current_year, birth_year): | |
g = current_year - birth_year | |
return g | |
my_age = calculate_age(2049,1993) | |
print (my_age) | |
dads_age = calculate_age(2049,1953) | |
print("I am " + str(my_age) + " years old and my dad is " + str(dads_age) +" years old. ") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment