Skip to content

Instantly share code, notes, and snippets.

@jmangrad
Created May 7, 2020 02:21
Show Gist options
  • Save jmangrad/4a6ba352137fd0043ee12b9d07ae83dc to your computer and use it in GitHub Desktop.
Save jmangrad/4a6ba352137fd0043ee12b9d07ae83dc to your computer and use it in GitHub Desktop.
Create a program that asks the user to enter their name and their age. Print out a message addressed to them that tells them the year that they will turn 100 years old.
#My Answer
name = input("Enter your name: ")
age = int(input("How old are you? "))
print("{0}, you will turn 100 in {1}".format(name, 100-age))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment