Advertisement
Cromoray

Name_Age

Apr 10th, 2020
540
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. # this program says hello and asks for my name
  2.  
  3. print('hello wolrd')
  4.  
  5. #now ask for the name
  6. print('What is your name?')
  7. myName = input()
  8. print ('It is good to meet you, ' + myName)
  9.  
  10. print('The lengh of your name is: ')
  11. print(len(myName))
  12.  
  13. #now ask for their age
  14. print('what is your age?')
  15. myAge= input()
  16. print('You will be ' + str(int(myAge) + 1) + ' in a year.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement