subject

Create a function in Python called Rainfall that will accept a list containing rainfall values over a 7 day period. The function will then add those values together and produce a total. It will also produce the average and return the average back to where it was called. Make sure before your return the average, you round it to 2 decimal places. Codio will call your function in order to test it. Make sure you properly name your function and include the correct number of parameters. Additionally make sure your function returns the right value back to where it was called. Given the following test data rain - [2.5, 1.0, 0.25, 0.0, 3.25, 0.75] your function should return the following: 1.11

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:30
What “old fashioned” features of checking accounts is p2p replacing
Answers: 3
question
Computers and Technology, 23.06.2019 14:30
Norder to receive financial aid at his vocational school, mario must fill out the fafsa. the fafsa is a form that must be completed to determine . in order to complete a fafsa, you must submit . the fafsa can students obtain
Answers: 2
question
Computers and Technology, 24.06.2019 00:50
3. what is the output of the following statements? temporary object1; temporary object2("rectangle", 8.5, 5); temporary object3("circle", 6, 0); temporary object4("cylinder", 6, 3.5); cout < < fixed < < showpoint < < setprecision(2); object1.print(); object2.print(); object3.print(); object4.print(); object1.set("sphere", 4.5, 0); object1.print();
Answers: 1
question
Computers and Technology, 24.06.2019 00:50
Which of the following is not a key player in the sale of travel products?
Answers: 2
You know the right answer?
Create a function in Python called Rainfall that will accept a list containing rainfall values over...
Questions
question
Social Studies, 25.02.2022 04:10
question
Mathematics, 25.02.2022 04:10
Questions on the website: 13722367