Skip to content

Instantly share code, notes, and snippets.

@AlucardSama04
Last active October 16, 2019 18:23
Show Gist options
  • Select an option

  • Save AlucardSama04/66b4f84676ccc25609c2fc4f6a9d86fa to your computer and use it in GitHub Desktop.

Select an option

Save AlucardSama04/66b4f84676ccc25609c2fc4f6a9d86fa to your computer and use it in GitHub Desktop.

Revisions

  1. AlucardSama04 revised this gist Oct 16, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion bored.py
    Original 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]
    return print(f'Your age is: {age}')
    print(f'Your age is: {age}')

    if __name__ == "__main__":
    main(number, year)
  2. AlucardSama04 created this gist Oct 16, 2019.
    12 changes: 12 additions & 0 deletions bored.py
    Original 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)