Question: PYTHON - please help I am very lost. There are other solutions I have seen on here but havent been able to get any of
1) Read Section 9.1 of the textbook. Open the text file revenue.txt for reading, whose contents are repeated here: Alabaster 40 50 23 18 Anniston 56 78 34 11 Athens 40 34 18 30 Auburn 55 67 23 11 Decatur 44 23 56 11 Florence 55 67 33 23 Gadsden 45 67 54 77 Write Python code that do the following: 1) Sum up all 4 quarter revenues and average them. 2) Sort the cities according to their Q1, Q3 and total revenues. (200 points) revenue - IonUsers mokwPycharmprojects revenue. PyCharm Edu 3.0 Eile Edit View Navigate Code Help Run City Revenue Total Average Florence (55, 67, 33, 231 178 44.50 Athena [40, 34, 18, 301 30.50 113 Alabaster [40, 50, 23, 181 131 32.75 Anniston [56, 78, 34, 111 179 Decatur [44, 23, 56, 111 134 33.50 Gadsden [45, 67, 54, 771 243 60.75 Auburn [55, 67, 23, 111 156 39.00 Sort the cities by their Quarter 1 revenues. ? t'Athena', 'Alabaster', 'Decatur', Gadaden', 'Florence', 'Auburn', 'Anniston a pojat 122 44.75 FI Sort the cities by their Quarter revenues. I 'Athena', 'Alabaster, Auburn', 'Florence, Anniston', 'Gadaden', 'Decatur 1 Sort the cities by their total revenues. t'Athena', 'Alabaster', 'Decatur', 'Auburn', 'Florence', 'Anniston', 'Gadaden" procesa linned with exit code 4 Run Python Console Platform and Plugin Updates: PyCharm Edu is ready to update. (4 minutes ago) 20:1 CRLF: UTF-8:@
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
