Python: Check if Array/List Contains Element/Value

PHOTO EMBED

Thu Feb 10 2022 09:41:14 GMT+0000 (Coordinated Universal Time)

Saved by @arielvol

retrieved_elements = list(filter(lambda x: 'Bird' in x, animals))
print(retrieved_elements)
content_copyCOPY

https://stackabuse.com/python-check-if-array-or-list-contains-element-or-value/