Welcome to the Treehouse Community
Looking to learn something new?
not sure what I'm missing
I've added the for loop and called the function to finish it..... I'm not sure if i need to input any items somewhere - doesn't work in the parenthesis at the end calling the function? or to create an input?
def loopy(items): for items in loopy: print(items) loppy()
Emre Havan8,569 Points
Your first mistake is you are trying to use the function name for your iteration which is loopy. You need to make it in a way such that the function can iterate all the items in there, when its called so you should do it like: "for i in items". Then it should work.
Answer for both the first and the second task:
def loopy(items): for i in items: if i == "STOP": break else: print(i)