skip to Main Content

Json – How do I add a space between the Double Quotes and Colon in the key values of the dictionary?

The following is my code: import json def value_list(sentence): word_list = sentence.split(" ") total_number_of_words_in_the_sentence = len(word_list) value_list = [] for i in range(0, total_number_of_words_in_the_sentence): count1 = word_list.count(word_list[i]) value_list.append(count1) return value_list def wordlist1(sentence): import json word_list = sentence.split() total_number_of_words_in_the_sentence = len(word_list)…

VIEW QUESTION
Back To Top
Search