Last active
October 16, 2019 18:23
-
-
Save AlucardSama04/66b4f84676ccc25609c2fc4f6a9d86fa to your computer and use it in GitHub Desktop.
Bored
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
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