Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This program asks for name and age
- #The program welcomes you and asks your name
- print ('Hi and welcome to the program!')
- print ( 'What is your name?')
- Name = input()
- #The program greets you by name.
- print ('Nice to meet you' + Name)
- #The program prints out your name length.
- print ('The length of your name is:')
- print(len(Name))
- #The program asks for your age
- age = int(input("What is your age?: "))
- #Using the user input for age, the program determines what section the program will take you to.
- if age < 12:
- print ('This program will take you to the kids section')
- else:
- print ('This program will take you to the regular user section')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement