main
1#!/usr/bin/env python
2
3# This program requests a password, and then asks the user for their name.
4
5print("""
6Program author: mo khan
7ID: 3431709
8Program 3-LOOPS AND IF CONDITIONS
9""")
10
11while input("Password? ") != 'hello':
12 print()
13
14print('Welcome to the second half of the program!')
15name = input("What is your name? ")
16if name == 'mo':
17 print("What a great name!")
18elif name == 'Madonna' or name == 'Cher':
19 print("May I have your autograph, please?")
20else:
21 print("{}, that's a nice name".format(name))