Home Password Generator Using Python byMYFILES-DOWNUP -August 19, 2021 Hi Guys I am Abhishek & And I have taught you how to make a Password generator with the help of python Enter Ad Link: import string import random if __name__ == "__main__": s1 = string.ascii_lowercase s2 = string.ascii_uppercase s3 = string.digits s4 = string.punctuation plen = int(input("Enter password length\n")) s = [] s.extend(list(s1)) s.extend(list(s2)) s.extend(list(s3)) s.extend(list(s4)) print("Your password is: ") print("".join(random.sample(s, plen))) Copy! Facebook Twitter