Skip to content

Instantly share code, notes, and snippets.

@magusafr
Created June 27, 2018 06:46
Show Gist options
  • Save magusafr/e02dbc9642ae28c2942caf7efa3e9d95 to your computer and use it in GitHub Desktop.
Save magusafr/e02dbc9642ae28c2942caf7efa3e9d95 to your computer and use it in GitHub Desktop.
Input name
# This program says hello and ask for my name.
print('Hello world!')
print('What is your name?') # ask for their name
myName = input()
print('It is good to meet you, ' + myName)
print('The length of your name is:')
print(len(myName))
print('What is your age?') # ask for their age
myAge = input()
print('You wil be' + str(int(myAge) + 1) + 'in a year.')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment