I would like to generate a list of random numbers and letters.
I managed to make this:
def rand_num():
  
    while True:
        random_char= random.choice(string.ascii_letters+string.digits)
    
        random_lst= [random_char]
but when I want to print this random_lst I get an output like this:
['W']
['i']
['P']
['6']
['P']
['B']
['d']
['f']
['n']
['j']
instead of:
['W','i','P'.... and so on
What should I do? Is .choice the wrong function in this case?
 
     
     
    