In a study, you randomly interviewed 10 people from your area to know their annual family incomes in 2017. The incomes t
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
In a study, you randomly interviewed 10 people from your area to know their annual family incomes in 2017. The incomes t
In a study, you randomly interviewed 10 people from your area toknow their annual family incomes in 2017. The incomes that youfound, were $(20000, 12000, 40000, 40000, 30000, 80000, 45000,18000, 24000, and 60000).Write a Python program that will create an array of integers withthe incomes above and then, write a “for loop” to read the valuesfrom the array to calculate the average income of thatregion.Finally, the program will give an output like:The average family income of this area is <calculatedvalue>.