Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created May 22, 2020 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/89a69704dcbac605a19efaf2947a83ac to your computer and use it in GitHub Desktop.
Save codecademydev/89a69704dcbac605a19efaf2947a83ac to your computer and use it in GitHub Desktop.
Codecademy export
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