bred

Generation

generate functionTue, 17 Jan 2023

find a specific word within a string without any spaces

def find(word, sentence): return word in sentence.replace(" ", "") find("cat", "thecatinthehat")

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