Question: This is in python code. I need help with 6-9. Thank you!!! 1. Has a dictionary and names as keys and numbers as values 2.

 This is in python code. I need help with 6-9. Thankyou!!! 1. Has a dictionary and names as keys and numbers as

This is in python code. I need help with 6-9. Thank you!!!

1. Has a dictionary and names as keys and numbers as values 2. Has a function that asks the user for their first name and stores it to the dictionary (as the key) with a random number as the value. 3. Has a function that selects a new random number for each name in the dictionary. This function can be called at any time and will produce random numbers for every name in the dictionary. 4. The random number must be generated in its own function. The program will call this function and it will return a random number. 5. From inside the random number function, get a random number between 1 and 10. 6. Has a function that prints out the dictionary in the format: a. Name-Random number (ie: Peter - 5) 7. Has a function to only print a single nameumber. Ask the user for the name and then send that name to the print function. This function must receive the name and not ask for it inside the function. 8. The program must be menu driven. 9. 9. One option in the menu must be quit. 10. The program must be commented appropriately. 11. Not required but as a challenge, allow the user to set and reset the range of random numbers

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!