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

Questions about programming?Chat with your personal AI assistant