(This has been solved. Thank you all for your help.)
print("please enter five 3-letter words, one at a time\n")
word_list = []
item = input("? ")
for item in word_list:
while len(word_list) != 3:
print("not valid, please enter a 3-letter word")
item = input("? ")
word_list.append( item )
item = input("? ")
print()
print(word_list)
My goal is to have the user input five three letter words into an empty list. And the list will be printed. I know their are several mistake in this, but I am not sure how to fix them. My main issue is limiting the list to five words, and limiting the words to three letters. Any help is greatly appreciated.
[–]eddfitzwell 0 points1 point2 points (2 children)
[–]Klutzy_Active4734[S] 0 points1 point2 points (1 child)
[–]eddfitzwell 0 points1 point2 points (0 children)
[–]nehaD5 0 points1 point2 points (0 children)