Professional Documents
Culture Documents
import array # This module defines an object type which can compactly represent an arrayof
digits = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'] # all digits
lower_case = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j','k', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w',
upper_case = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J','K', 'M', 'N', 'O', 'p', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
symbols = ['*','(', ')', '<' ':', '?', '.', '/', '|', '~', '>', '@', '#', '$', '%', '=', ] # all symbols
mixed_list = upper_case + lower_case + digits + symbols # combine all the lists in one
random_dig = random.choice(digits)
random_low = random.choice(lower_case)
randome_upp = random.choice(upper_case)
randome_sym = random.choice(symbols)
# there is only 4 elements but after this you can have as many as you want
temp_pass2 = array.array('u', temp_pass) # to covert temp password into array for shuffling
main_pass = main_pass + z
b=main_pass
print(a)
if c=='y':
print(b)
if c=='Y':
print(b)
else: