#Initialize a bag my_bag_of_items = ["apple", "jar of cicadas"] #Adding some crayons to our bag my_bag_of_items.append("crayons") print("You may not pass if: \n You don't have crayons") #Begin with the assumption we don't have crayons until one is found assumption = False #Loop through our bag, looking for some crayons for n in range(0,len(my_bag_of_items)): if my_bag_of_items[n] == "crayons": assumption = True if (assumption == True): print("I have crayons") else: print("I don't have crayons") my_bag_of_items.remove("crayons") #Python allows us to use "in" which loops and checks for us if ("crayons" in my_bag_of_items) == True: print("I have crayons") else: print("I don't have crayons")