Question: BUSI 2 4 0 1 Introduction to Data Analytics In Class Exercise 3 Python foundation Given a dictionary gradeCounts = { A : 1 0

BUSI 2401 Introduction to Data Analytics
In Class Exercise 3 Python foundation
Given a dictionary
gradeCounts ={A : 10,C : 2,B:15,F:5,D:6}
Write a Python program that produces the following outcome:
The user is expected to input a command number. This would be similar to the above screenshot.
Command number 1 to print gradeCount keys
Command number 2 to print gradeCount values
Your code should use a custom function with the following header to execute the three command: def executeCommand (gradeCounts,commandNum):
The program prompts the user to enter a number. You should use EXCEPTION to prevent users from inserting non integers. The assumption is the user doesnt enter a negative number or float.
First save your file as: IC3_cuid.py where cuid is your Carleton University Identification. Next save your file as: IC2_cuid.txt . Upload the both versions to Brightspace.

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!