search string python list code example
Example 1: python find string in list
list1 = ["a", "b", "c"]
isBInList = "b" in list1 # True
Example 2: python search list
search = listname.index('search')
list1 = ["a", "b", "c"]
isBInList = "b" in list1 # True
search = listname.index('search')