#!/usr/bin/python3 #Simple Password Generator v.01 #By: Alastor import random chars = "abcdefghijklmnopqrstuvwxyz1234567890" password = "" print("\nSimple Password Generator:") print("\nCharacter list = %s \nEdit code to change it." % chars) length = int(input("\nPassword Length: ")) while len(password) != length: password = password + random.choice(chars) if len(password) == length: print("Password: %s\n" % password)