Title Creating a Dictionary of Character-Count/Words Pairs
Catalog Type SLCItem
Persistent ID https://pawscomp2.sis.pitt.edu/pcex/pcex_v2/index.html?lang=PYTHON&set=py_char_dict&ch=py_first_char_words_dict
Platform Name PCEX
Features
Description Construct a program that has a function which receives a string and creates a dictionary that maps each character to the list of distinct words in the given string that start with that character. The dictionary should be case insensitive.\nFor example, if the given string is "This is my test score", the program creates the following dictionary:\nt : ['this', 'test']\ni : ['is']\nm : ['my']\ns : ['score']
Keywords dictionaries, dictionary
Author Kamil Akhuseyinoglu
Institution University of Pittsburgh
Iframe URL https://pawscomp2.sis.pitt.edu/pcex/pcex_v2/index.html?lang=PYTHON&set=py_char_dict&ch=py_first_char_words_dict
Protocol PITT, HTML
Protocol URL
License MIT
Programming Language Python
Natural Language en

Preview