Skip to content

Instantly share code, notes, and snippets.

@AlucardSama04
Last active October 16, 2019 18:23
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 AlucardSama04/66b4f84676ccc25609c2fc4f6a9d86fa to your computer and use it in GitHub Desktop.
Save AlucardSama04/66b4f84676ccc25609c2fc4f6a9d86fa to your computer and use it in GitHub Desktop.
Bored
number = int(input("Enter any number from 1 to 9: "))
year = int(input("Enter your year of birth: "))
def main(number, year):
no1 = number*2+5
no2 = no1*50+1769
no3 = str(no2 - year)
age = no3[1:3]
print(f'Your age is: {age}')
if __name__ == "__main__":
main(number, year)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment