Skip to content

Instantly share code, notes, and snippets.

@mightywombat
Created April 18, 2018 21:39
Show Gist options
  • Save mightywombat/276faa9a796109fc7f83d6c8882b6976 to your computer and use it in GitHub Desktop.
Save mightywombat/276faa9a796109fc7f83d6c8882b6976 to your computer and use it in GitHub Desktop.
practicepython.org Ex 01
# practicepython.org Ex 01
name = raw_input( "Please enter your name: " )
age = int(raw_input ( "Please enter your age: " ))
age = str( 100 - age )
print ( "Hi, " + name + "! You will turn 100 years old in " + age + " years!" )
@mightywombat
Copy link
Author

Input didn't work for some reason. I kept getting "$whateveranswer is not defined." Raw_input fixed that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment