Skip to content

Instantly share code, notes, and snippets.

@abhi1381
Created January 5, 2018 17:50
Show Gist options
  • Select an option

  • Save abhi1381/fa234c42b32396c275024a77e2141cb8 to your computer and use it in GitHub Desktop.

Select an option

Save abhi1381/fa234c42b32396c275024a77e2141cb8 to your computer and use it in GitHub Desktop.
age calculator
name = input("what is your name: ")
print("Your name is:",name)
print("\n")
age = int(input("what is your age: "))
print("your age is:",age)
print()
total = 100 - age
print("you will be 100 yrs old after {} years.".format(total))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment