1. Home
  2. /
  3. Blog
  4. /
  5. check in lists python
Python

check in lists python

September 27, 2022 1 min read 2,360
check in lists python

colors = ["orange","black","white","red","yellow"]

print ("orange" in colors )

# true
Share:
Read next

Related articles