Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in python please Chrome File Edit View History Bookmarks People Tab Window Help CO 61% A Q 8 * Wed Feb 17 6:24 PM O

in python please

image text in transcribed
Chrome File Edit View History Bookmarks People Tab Window Help CO 61% A Q 8 * Wed Feb 17 6:24 PM O k Python [ X The diar X 1. Accept C You Hav X G Factoria X Q How to | X Repl.it - X zy 3.2. List X W Python F X Homew X + -2 C repl.it/@BIA385PytohnPro/Chapter3Simple-Application-of-Lists-and-Sets-jiaron... G ABP S Y ... Apps QuillBot | Free Par... STATE OF NEBRA... Windows denfene... MEZIP SAME -... jrccc1221 SimFin - API Access Schulich Applicati BIA385PytohnPro / Chapter3/Simple Appl... D Run Upgrade Submit + Files G : main.py E Preview Console Shell Markdown 1 Electricity_bill = Preview of README.md main.py N . . . GasWater_bill = B total_utility= sum(Electricity_bill) +sum step1: takes 12 values from the users as their past 12 months README.md Y (GasWater_bill) electricity bills. Add these values to a list called 4 avg_utility= Electricity_bill. (Hint: do not use loops... becasue your 5 groupmates might not know how to use loops). do the same thing for the past 12 months of gas/water bills and call the list GasWater_bill. Step 2: calcualte the total utility of the past 12 months. (Hint: assign the total utility values to a new list and call it total_utility). Then, calculate the average utility per month. Step 3: Find and print the maximum and minimum amount for the electricity bill Step 4: find and print the months in which electricity bills were minimum and maximum. Step 5: using one line of code, find the unique values of total_utility list and print the unique values. .U (Hint: use set() function and pass total_utility to it.) 1996 17 X P W O 4

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions

Question

This is the first part for the lab, it is already solved: \f

Answered: 1 week ago