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')

Questions about programming?Chat with your personal AI assistant