Last active
October 16, 2019 18:23
-
-
Save AlucardSama04/66b4f84676ccc25609c2fc4f6a9d86fa to your computer and use it in GitHub Desktop.
Revisions
-
AlucardSama04 revised this gist
Oct 16, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,7 @@ def main(number, year): no2 = no1*50+1769 no3 = str(no2 - year) age = no3[1:3] print(f'Your age is: {age}') if __name__ == "__main__": main(number, year) -
AlucardSama04 created this gist
Oct 16, 2019 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ 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] return print(f'Your age is: {age}') if __name__ == "__main__": main(number, year)