Title Creating a Dictionary of Student-Scores Pairs (Case 2)
Catalog Type SLCItem
Persistent ID https://acos.cs.vt.edu/html/acos-pcex/acos-pcex-examples/py_student_score__664e421991363872f0ba3686?index=1
Platform Name PCEX
Features
Description Assume we have a list of students and a list of their corresponding test scores. Construct a program that has two functions:\n- a function that receives these two lists and returns a dictionary that maps each student to the scores of that student, and \n- a function that receives the dictionary created by the above function and calculates the average score of each student
Keywords
Author Mohammad Hassany
Institution University of Pittsburgh
Iframe URL https://acos.cs.vt.edu/html/acos-pcex/acos-pcex-examples/py_student_score__664e421991363872f0ba3686?index=1
Protocol SPLICE
Protocol URL
License MIT
Programming Language PYTHON
Natural Language en

Preview

SPLICE Output