Question: Create a module named h06_01.py from the directory hw * Record your name, class number, and date of creation. * Create an empty dictionary to

Create a module named h06_01.py from the directory hw

* Record your name, class number, and date of creation.

* Create an empty dictionary to store the poll results

* Using a while loop to add users input of their name, and monthly income to the dictionary data structure.

* Stop the while loop if user input is No (n)

* Print out how many participants in the poll, the total and average monthly income for these participants

Hints:

1. The average monthly income=total incomes / number of people

2. You may create variables to store participant numbers and total monthly income before the while loop

Paste the code and captured screen here:

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!