check if item exists in list python

listA = [item1, item2, item3]
if item4 in listA:
  print('yes, item4 is in the list')
else:
  print('no, item4 is not in the list')

Here is what the above code is Doing:
1. We create a list called listA.
2. We check if item4 is in listA.
3. If item4 is in listA, we print a message saying so.
4. If item4 is not in listA, we print a message saying so.