I see people are using any to gather another list to see if an item exists in a list, but is there a quick way to just do something like this?

if list.contains(myItem):
    # do something

6 s
6

Leave a Reply

Your email address will not be published. Required fields are marked *