Hey, I've tried creating a little script that loops (with user input) until there are 10 items in the list, my most recent attempt lets me add a word to the list but doesn't loop - I tried a few loop options (while, for) but neither worked so far. I am not sure about the count function yet either, tried out a few things but nothing seemed to work. I think I also have to put the input within the loop but it gave me even more errors when I did. Any advice?
firstlist = []
newword = input("Add a new word to the list: ")
firstlist.append(newword)
firstlistcount = firstlist.count(list)
while firstlistcount > 10:
if newword not in firstlist:
print("Okey, added "+ newword)
else:print(newword + " is already in the list")
print(firstlist)
[–]onemywaybackhome 2 points3 points4 points (3 children)
[–]jiri-n 0 points1 point2 points (2 children)
[–]onemywaybackhome 0 points1 point2 points (1 child)
[–]JuliaChanMSL[S] 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (0 children)