Below you will see four searches. What you should do is understand whether they will return True or False and then treat the sequence as a number in the binary system (True is 1 and False is 0). For example, False True True False = 0110).
print('' in 'universe') # 1
pet = "myguineapignamedSparks"
print(pet.startswith("pig", 3)) # 2
longest_word = "Antidisestablishmentarianism"
print(longest_word.endswith("establishment", 20)) # 3
person = "lover"
print(person.endswith("over")) # 4