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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started