Created
February 6, 2017 22:50
-
-
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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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