Generation

generate functionMon, 23 Jan 2023

Detect a word in a string given a key word by the user and of it is print all instances,optimally

def keywordInString(searchText, keyWord): if keyWord in searchText: return True else: return False

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