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 09:30
Is a string of code written to hurt others by damaging or destroying
Answers: 1
question
Computers and Technology, 23.06.2019 03:30
In vista and windows 7, the appearance and personalization option allows you to change the
Answers: 1
question
Computers and Technology, 23.06.2019 10:00
Now, open this passage to read about fafsa requirements. describe the information you will need to provide in order to complete a fafsa. list at least three of the required documents you must include.
Answers: 3
question
Computers and Technology, 24.06.2019 00:30
The best definition of an idiom is a. a word or phrase that describes a noun b. a word or phrase describing a verb c. a phrase containing figurative language in which the word expresses a different idea from its exact meaning d. a phrase that compares two unlike objects or ideas
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
Computers and Technology, 15.07.2019 22:30
question
Mathematics, 15.07.2019 22:30
Questions on the website: 13722360