Instead of returning the result of the any()
function, you can use a for-loop to look for the string instead:
def find_match(string_list, wanted):
for string in string_list:
if string.startswith(wanted):
return string
return None
>>> find_match(['ones', 'twos', 'threes'], "three")
'threes'