Title Creating a Dictionary of Character-Count Pairs
Catalog Type SLCItem
Persistent ID https://acos.cs.vt.edu/html/acos-pcex/acos-pcex-examples/py_char_dict_llm__677ffcb007784185798147b2?index=0
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
Author Mohammad Hassany
Institution University of Pittsburgh
Iframe URL https://acos.cs.vt.edu/html/acos-pcex/acos-pcex-examples/py_char_dict_llm__677ffcb007784185798147b2?index=0
Protocol SPLICE
Protocol URL
License MIT
Programming Language PYTHON
Natural Language en

Preview

SPLICE Output