Question: Make a dictionary, the student's name is the key (a string) and the student's test scores is the value (a list). So it should be

Make a dictionary, the student's name is the key (a string) and the student's test scores is the value (a list).  So it should be a dictionary with six key value pairs in it. Here is data to use.  


Brian,94,89,92 

Rachel,100,90,65 

Jon,67.5,95,100 

Brit,0,78,80 

Greg,65,100,78 

Andrea,55.5,67,79

 

Now print the dictionary data using a loop that starts with 

for key, value in.


10pts Problem 2

Now print the dictionary data  using a loop that starts with 

 for key in

10pts Problem 3


Find and print out Rachels second score (should be a 90)

 

10pts Problem 4


This one is a little tricky, a little mind-bender.  Make a new dictionary.  Using the dictionary you made from above,. the new dictionary should consist of the key is the name of the person, and the value is just the average of their scores.  So it's six key value pairs but instead of the value being a list like the first problems, this time it's just their average (which you compute from their scores in the other dictionary.  Print the new dictionary out.

 

Problem 5

60pts Problem 5 Free Choice game using a dictionary


 

Psst: Do not do tic tac toe, connect four, rock paper scissors, hangman, ie games where there is code obviously available on the internet, or something identical to my examples, plz make something up


You will create  free choice game.  Your game will be using a PYTHON DICTIONARY


Make sure your game is original, ie: don't take anything from the web.  Don't find a solution, just Make something up.


i will give you some ideas for a dictionary based game but you can do whatever you want.


 

A word guessing game, where you try to guess answers


 

  • A language translation game


 

  • Some sort of a quiz or memorization game


 

The goal is to make sure you understand how to create, access and manipulate a Python dictionary.  In the interest of time your games need not be too complicated. Keep it simple. I just need to get the overall impression that you understand how Python dictionaries work. Make sure to tell me what your game is, and include your source code and output.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Problem 1 Create a Dictionary and Print Using Loop Here create a dictionary with student names as ke... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!