 <p>You would be better using an if-elif-else structure in your code to deal with the 3 different expected conditions</p> <p>Also you need to change the <code>if item in item:</code> to <code>if item in shoppingListVar:</code></p> <pre><code>shoppingListVar = [] while True: item = input("Enter your Item to the List: ") if item in shoppingListVar: print("you already got this item in the list") elif item == "end": break else: shoppingListVar.append(item) print ("The following elements are in your shopping list:") print (shoppingListVar) </code></pre>