# A list of Common used passwords
passwordList = [‘123456′,’123456789′,’987654321′,’qwerty’,’password’,’Password123′,’Qwerty1′,
‘abc123′,’password1′,’12345’]
# A fucntion to execute the program
def usePasswords():
while(True):
password = input(“Enter Your Password:”)
if (password in passwordList):
print(“Please choose a different Password!”)
else:
passwordList.append(password)
print(“Your Password” +” “+ password +” “+ “Has Been added to the Password List”)
break
# Call the fucntion
usePasswords()
#Quit or continue to use the program
while True:
N = input(“Do you want to continue to continue, Y/N:”).upper()
if N == ‘Y’:
usePasswords()
elif N == ‘N’:
print(“Goodbye”)
break
else:
while N not in ‘YN’:
print(“Invalid input, please try again.”)
N = input(“Do you want to continue to continue, Y/N: “).upper()
Output
The post # A list of Common used passwords passwordList = [‘123456′,’123456789′,’987654321′,’qwerty’,’password’,’Password123′,’Qwerty1′, ‘abc123′,’password1′,’12345’] # appeared first on PapersSpot.