Question: Suppose a dictionary mgrEmpsDict maps managers to a a LIST Of their employees: mgrEmpsDict = ={} 1. Ask the user to enter a mgrName Ask

Suppose a dictionary mgrEmpsDict maps managers to a a LIST Of their employees: mgrEmpsDict = ={} 1. Ask the user to enter a mgrName Ask the user to continue adding empNames until they enter -999 to quit Insert an entry into the mgrEmpsDict 2. Ask the user to enter an empName. Print the name of the manager for that employee OR print "no such employee" if they aren't in the mgrEmpsDict. 3. Ask the user for a new employee's name. Ask the user for the name of a manager. Insert that employee into the list for that manager OR print a message if the manager doesn't exist. 4. For each entry in mgrEmps Dict, print the manager name followed by the number of employees for that manager
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
