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

Questions about programming?Chat with your personal AI assistant