Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # this program says hello and asks for my name
- print('hello wolrd')
- #now ask for the name
- print('What is your name?')
- myName = input()
- print ('It is good to meet you, ' + myName)
- print('The lengh of your name is: ')
- print(len(myName))
- #now ask for their age
- print('what is your age?')
- myAge= input()
- print('You will be ' + str(int(myAge) + 1) + ' in a year.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement