bred

Generation

generate functionTue, 17 Jan 2023

locate a specific word that is in a string

def locate(word, string): return string.find(word) locate('hello', 'hello world')

Want to kickstart your project?Use the new AI Studio to create your code