Question: 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: in
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
