I'm trying to make a password generator. I've made lists containing all of the numbers and letters. I'm trying to add all of the lists to one big list then pick a random thing out of a random list for each position.
def generator():
password=['','','','','','','','','','','']
symbols=['£','$','%','^','&','*','_']
numbers=[0,1,2,3,4,5,6,7,8,9]
letter=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
Uletter=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']
password[0]=random.choice(numbers)
password[1]=random.choice(numbers)
password[2]=random.choice(numbers)
password[3]=random.choice(numbers)
password[4]=random.choice(numbers)
password[5]=random.choice(numbers)
password[6]=random.choice(numbers)
password[7]=random.choice(numbers)
password[8]=random.choice(numbers)
password[9]=random.choice(numbers)
password[10]=random.choice(numbers)
print(password)
I know that I've got random.choice(numbers) for each slot but that is just for the sake of saving time right now until I get the generator working.