Menu
×
×
Correct!
Exercise:Use the correct membership operator to check if "apple" is present in the
fruits = ["apple", "banana"]
if "apple" in fruits:
print("Yes, apple is a fruit!")
Not CorrectClick here to try again. Correct!Next ❯fruits = ["apple", "banana"] if "apple"fruits: print("Yes, apple is a fruit!") |