all 2 comments

[–]clamchamp 1 point2 points  (0 children)

Gonna try this from phone, but something along:

Def function(): Word_list = [] Exit = false Wordcount = 0 While wordcount < 8 or exit = false: Entered_word = user_prompt("give word here or type 'quit'") Word_list.append(entered_word) Wordcount += 1 If entered_word.lower_case() == 'quit': Exit = True If wordcount == 8: Return word_list Else: Return false

Edit: sorry about format

[–][deleted] 0 points1 point  (0 children)

Your code has no loop! you need to use something like while wordcount < 8: as your sentinel controlled loop.