python search in string and get result as a list code example Example: python find string in list list1 = ["a", "b", "c"] isBInList = "b" in list1 # True