Question: Create a (hard-coded) dictionary with these five players from the Denver Nuggets: Jamal Murray, Nikola Jokic, Aaron Gordon, Michael Porter Jr., and Kentavious Caldwell-Pope. Their
Create a (hard-coded) dictionary with these five players from the Denver Nuggets: Jamal Murray, Nikola Jokic, Aaron Gordon, Michael Porter Jr., and Kentavious Caldwell-Pope. Their jersey numbers (respectively) are 27, 15, 50, 1, and 5.
The jersey numbers are the keys and the names are values.
There will be three input values:
A jersey number
A name
A jersey number
Use the first two inputs to add one more player to the dictionary. Use the third input to look up a player in the dictionary and display his name. Tip: be sure to use integer jersey numbers.
Ex: If the input is:
11 Bruce Brown 15
the output is:
Nikola Jokic wears 15
Ex: If the input is:
11 Bruce Brown 11
the output is:
Bruce Brown wears 11 python
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
