Title Creating a Dictionary of Character-Count/Words Pairs
Catalog Type SLCItem
Persistent ID https://pawscomp2.sis.pitt.edu/pcex/index.html?lang=PYTHON&set=py_char_dict
Platform Name PCEX
Features
Description Construct a program that has a function which receives a string from the user and creates a dictionary that maps each character in the given string to its frequency, that is, how many times that character appears in the given string.\nFor example, if the given string is "book", the program creates the following dictionary:\nb : 1\no : 2\nk : 1
Keywords classes, data structures, dictionaries, dictionary, stacks
Author Roya Hosseini
Institution University of Pittsburgh
Iframe URL https://pawscomp2.sis.pitt.edu/pcex/index.html?lang=PYTHON&set=py_char_dict
Protocol PITT, HTML
Protocol URL
License MIT
Programming Language Python
Natural Language en

Preview