Romania- Posted August 9, 2014 Report Posted August 9, 2014 from random import randintpamount = int(raw_input("How many passwords do you want to generate?\n"))plength = int(raw_input("How many characters should be in your password(s)?\n"))filename = raw_input("What do you want the name of your file to be?\n")son = int(raw_input("Do you want symbols or not? 2 = yes, 1 = no\n"))text = open(filename + ".txt", 'a')loopcount = 0while loopcount < pamount: password = "" loopcount2 = 0 while loopcount2 < plength: if son == 1: if randint(1, 2) == 1: password += chr(randint(65, 90)) else: password += chr(randint(97, 122)) loopcount2 += 1 else: password += chr(randint(33, 125)) loopcount2 += 1 text.write(password + '\n') loopcount += 1text.close() Quote