Skip to content

Instantly share code, notes, and snippets.

@shamikalashawn
Created February 6, 2017 22:50
Show Gist options
  • Save shamikalashawn/1637fd9c03f5af75fadc1e0e90c1dc4c to your computer and use it in GitHub Desktop.
Save shamikalashawn/1637fd9c03f5af75fadc1e0e90c1dc4c to your computer and use it in GitHub Desktop.
A little more than "hello world", this program asks for your name and age and then greets you with a little information about yourself.
#This program says hello and asks 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 will 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