Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Your task is to use a Python dictionary to provide information about the points scored by a basketball team in one game. Write a program
Your task is to use a Python dictionary to provide information about the points scored by a basketball team in one game.
Write a program that does the following:
- Using the assignment statement below, create a dictionary with points scored by each of the Philadelphia 76ers against the Brooklyn Nets on April 20, 2019.
points = dict(Harris=24, Butler=11, Embiid=31, Simmons=15, Reddick =9, Scott=8, Ennis=7, Marjanovic=4, Bolden=1, McConnell=2)
- Iterate the dictionary once, resulting in a printout that shows us:
- a list of the players and the points they each scored, with one player on each line.
- the total number of points they scored.
- the name of the highest scorer on the team.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started