Run Program ❯
Python Home
❯
Run Code
Change Orientation
# Creating a list of 18 fruits fruits = [ "apple", "banana", "cherry", "date", "elderberry", "fig", "grape", "honeydew", "kiwi", "lemon", "mango", "nectarine", "orange", "papaya", "quince", "raspberry", "strawberry", "tangerine" ] # Check if "mango" is in the list if "mango" in fruits: print("Yes, 'mango' is in the list.") # Check if "blueberry" is in the list if "blueberry" not in fruits: print("No, 'blueberry' is not in the list.")