Commit f9b7f6b

mo khan <mo@mokhan.ca>
2025-01-12 20:32:08
finish program 3
1 parent b23ced3
Changed files (1)
projects
projects/2/prog3.py
@@ -3,5 +3,17 @@
 print("""
 Program author: mo khan
 ID: 3431709
-Program 3 - Loops And If Conditions
+Program 3-LOOPS AND IF CONDITIONS
 """)
+
+while input("Password? ") != 'hello':
+    print()
+
+print('Welcome to the second half of the program!')
+name = input("What is your name? ")
+if name == 'mo':
+    print("What a great name!")
+elif name == 'Madonna' or name == 'Cher':
+    print("May I have your autograph, please?")
+else:
+    print("{}, that's a nice name".format(name))