here my_list
is a list containing string(alphabets). i have to select (no. user input) of alphabets randomly.
my task is to add these (no. user input) to a list and then do a little bit further operation with that list.
my problem here is I am unable to add rndm
to my checklist
.
here is m function
for i in range(0, n_subs):
rndm=my_list[random.randint(0, n_subs)]
checklist.insert(rndm)
print checklist#check
checklist.append(rndm)
?checklist.insert(0,rndm)
help(checklist.insert)
(assuming you want to insert and not append)