-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSecurity.py
More file actions
38 lines (32 loc) · 1021 Bytes
/
Security.py
File metadata and controls
38 lines (32 loc) · 1021 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
38
# Exclusive Network
# Demonstrates logical operators and compound conditions
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 == "M.Dawson" and password == "secret":
print("Hi, Mike.")
security = 5
elif username == "S.Meier" and password == "civilization":
print("Hey, Sid.")
security = 3
elif username == "S.Miyamoto" and password == "mariobros":
print("What's up, Shigeru?")
security = 3
elif username == "W.Wright" and password == "thesims":
print("How goes it, Will?")
security = 3
elif username == "guest" or password == "guest":
print("Welcome, guest.")
security = 1
elif username == "ADMIN" or password =="Gmail99":
print("Welcome admin you are highest security")
security=10
else:
print("Login failed. You're not so exclusive.\n")
input("\n\nPress the enter key to exit.")