Cody Bable

Generation

generate functionMon, 03 Jul 2023

check if the word is in the special word of the text, if so, add to dictionary along with count

def check_word(word, special_word, dictionary): if word == special_word: if word not in dictionary: dictionary[word] = 1 else: dictionary[word] += 1

Questions about programming?Chat with your personal AI assistant