Cody Bable

Generation

generate functionMon, 03 Jul 2023

check if the word in the string is in the list of the special words to count, if so, add to dictionary along with the number of times it occurred in the string

def string_word_count(string, word_list): word_dict = {} #your code here return word_dict

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