Advertisement
Guest User

Untitled

a guest
Mar 31st, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. # This program says hello and asks for my name
  2. print('Hello world!')
  3. print('What is your name?')
  4. myName = input()
  5. print('It is good to meet you,' +myName)
  6. print('The length of your name is:{}'.format(len(myName)))
  7. print('What is your age?')
  8. myAge = input()
  9. print('You will be '+ str(int(myAge) + 1) + ' in a year.')
  10. print(myName * 1000000)
  11.  
  12. name = 'Alice'
  13. if name == 'Alice':
  14.     print('Hi Alice')
  15. print('Done!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement