Hi
OK - yes,you're right. The thing is that I simply can't figure out how. Now, based on you're reply, I tried to put in the following, which seem more clear. Still doesn't work - or in fact I'm not sure because I don't get any response in my VScode, which could lead to something being absolutely wrong in the code.
Cheers
OK - yes,you're right. The thing is that I simply can't figure out how. Now, based on you're reply, I tried to put in the following, which seem more clear. Still doesn't work - or in fact I'm not sure because I don't get any response in my VScode, which could lead to something being absolutely wrong in the code.
import random nouns = ["fossil", "horse", "aardvark", "judge", "chef", "mango", "gorilla"] new_lst = [] i = 0 while i < 3 : select_noun = random.choice(nouns) if select_noun.index in new_lst == False : new_lst.append(select_noun) i = len(new_lst) print (new_lst)Can you find the problem in this?
Cheers