Created
June 27, 2018 06:46
-
-
Save magusafr/e02dbc9642ae28c2942caf7efa3e9d95 to your computer and use it in GitHub Desktop.
Input name
This file contains 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 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