ICE-1121 Python Programming Laboratory 1
ICE-1121 Python Programming
Laboratory 10 Report
EXERCISE 1 – CAESAR CIPHER (AKA SHIFT CIPHER)
Your answer goes here.
EXERCISE 2 – MASTERMIND
Your answer goes here.
EXERCISE 3 – PASSWORDS
score = 0
print("""\t1- Create a new userID
2 - Change a password
3 - Display all userIDs
4 - Quit """)
char=upp=low=num=sym = 0
option = int(input("Select your option 1 | 2 | 3 | 4: "))
if option == 1:
username = input("Enter a user ID: ")
password = input("Enter password: ")
if len(password) >= 8:
char = 1
score = score +1
for p in password:
if p.isupper():
char = 1
if p.islower():
low = 1
if p.isdigit():
num = 1
if p in ["!", "£", "$", "%", "&", "<", "*", "@"]:
sym = 1
point= char + upp + low + sym
else:
print("Password should be at least 8 Characters")
print(point)
Do'stlaringiz bilan baham: |