Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created October 30, 2018 21:15
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/d41a437548d1e3407a8374861b55ed44 to your computer and use it in GitHub Desktop.
Save codecademydev/d41a437548d1e3407a8374861b55ed44 to your computer and use it in GitHub Desktop.
Codecademy export
def calculate_age(current_year, birth_year):
age = current_year - birth_year
return age
calculate_age(current_year= 2018, birth_year = 1993)
my_age = 2018 - 1993
calculate_age(current_year= 2018, birth_year = 1953)
dads_age = 2018 - 1953
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment