Check if a string is in a list

PHOTO EMBED

Mon Nov 06 2023 16:57:16 GMT+0000 (Coordinated Universal Time)

Saved by @diptish #python

if 'abc' in str(my_list):
content_copyCOPY

https://stackoverflow.com/questions/4843158/how-to-check-if-a-string-is-a-substring-of-items-in-a-list-of-strings