-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexclusive_network.py
More file actions
37 lines (31 loc) · 998 Bytes
/
exclusive_network.py
File metadata and controls
37 lines (31 loc) · 998 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Exclusive Network
# Demonstrates logical operators in conditions
# and, or, not
print ("\tExclusive Computer Network")
print ("\t\tMembers only!\n")
security = 0
username = ""
while not username:
username = input("Username: ")
password = ""
while not password:
password = input("Password: ")
if username == "Mike" and password == "secret":
print ("Hi, Mike.")
security = 1
elif username == "S.Meier" and password == "civilization":
print ("Howdy, Sid.")
security = 1
elif username == "S.Miyamoto" and password == "mariobros":
print ("What's up, Shigeru?")
security = 1
elif username == "W.Wright" and password == "thesims":
print ("How goes it, Will?")
security = 1
elif username == "guest" or password == "guest":
print ("Welcome, guest.")
security = 1
else:
print ("Login failed. You're not so exclusive.\n")
if security == 1:
print("Welcome to the Exclusive Computer Network", username)