Question: BUSI 2 4 0 1 Introduction to Data Analytics In Class Exercise 3 Python foundation Given a dictionary gradeCounts = { A : 1 0
BUSI Introduction to Data Analytics
In Class Exercise Python foundation
Given a dictionary
gradeCounts A : C : B:F:D:
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 to print gradeCount keys
Command number to print gradeCount values
Your code should use a custom function with the following header to execute the three command: def executeCommand gradeCountscommandNum:
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: ICcuid.py where cuid is your Carleton University Identification. Next save your file as: ICcuid.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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
