
import string
import random

s1 = string.ascii_lowercase
print(s1)
s2 = string.ascii_uppercase
print(s2)
s3 = string.digits
print(s3)
s4 = string.punctuation
print(s4)

plen = int(input("Enter the password length you wish to generate: \n")) #TO do Handle Gibrish

s = []

s.extend(list(s1))
s.extend(list(s2))
s.extend(list(s3))
s.extend(list(s4))

print(s)

random.shuffle(s)

print(s)

print("Your Password is: \n")

print("".join(s[0:plen]))