This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Write a password generator in Python. Be creative with how you generate passwords - strong passwords have a mix of lowercase letters, uppercase letters, numbers, and symbols. The passwords should be random, generating a new password every time the user asks for a new password. Include your run-time code in a main method. | |
# | |
# Extra: | |
# | |
# Ask the user how strong they want their password to be. For weak passwords, pick a word or two from a list. | |
userin = input("Would you like a strong or weak password? ") | |
userin = userin.lower() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
userin = input("Would you like a strong or weak password? ") | |
userin = userin.lower() | |
import string | |
import random | |
def generatePW(): | |
""" | |
Evaluate if user wants a weak or strong password, before passing it respective password generator. | |
""" |