Answered step by step
Verified Expert Solution
Question
1 Approved Answer
It says the test error, how to correct it? NE Functionsq2.py > ... 1 def compute_total(l): 2 return sum(1) 3 4 print(Enter input of 12
It says the test error, how to correct it?
NE Functionsq2.py > ... 1 def compute_total(l): 2 return sum(1) 3 4 print("Enter input of 12 months rainfall:") l=list(map(int, input().split())) 7 8 print("Total rainfall:', compute_total(1)) 9 10 if _name_ __main__': int("Enter input of 12 months rainfall):") print("Total rainfall:", compute_total(1)) 11 12 = 1 2 import Functionsq2 as s 3 4 0 0 0 0 + W NP def test_2(): assert True 5 True 6 7 8 def test_dow(): 1 = function.dow(1) (2) (2) (2) (2) (2) (2) (2) (2) (2) (2) (2) assert i "23" 9 test_Lab4q2.py:2: inStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started