Skip to content

Instantly share code, notes, and snippets.

View Limerin555's full-sized avatar
💭
Open to remote/hybrid & Penang based opportunities

Erin Lim Limerin555

💭
Open to remote/hybrid & Penang based opportunities
View GitHub Profile
@Limerin555
Limerin555 / 16.Password_generator.py
Last active May 26, 2017 12:39
Attempting exercises from Practice Python( http://www.practicepython.org/ )
# 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()
@Limerin555
Limerin555 / 16.Password_generator.py
Created May 26, 2017 12:38
Attempting exercises from Practice Python( http://www.practicepython.org/ )
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.
"""