I have the following code that prints the 3 words in the list over and over again. I'm trying to figure out how to print one word from the list, then wait for user intervention (like a key press) then print the second word and so on. I think it is probably an easy solution, but I just can't seem to figure it out at this time. I'm new at this. Thanks in advance.
list = ["foo","bar", "baz"]
i = 0
while i < len(list):
    element = list [i]
    i += 1
    print(element)
    if i == 3:
        i = 0
 
    