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 of12 months rainfall:") l=list(map(int, input().split())) 7 8 print("Total rainfall:', compute_total(1)) 9 10It 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 import Functionsq2 as s Functionsq2.py:6: in l=list(map(int, input().split())) /Library/Frameworks/Python. framework/Versions/3.9/lib/python3.9/site-packages/_pytest/capture.py:217: in re ad raise OSError( E OSError: pytest: reading from stdin while output is captured! Consider using '-s'. Captured stdout Enter input of 12 months rainfall: short test summary info ERROR test_Lab4q2.py OSError: pytest: reading from stdin while output is captured! Consider using '-s'. !!!!!! !!!! !!!!!!!! Interrupted: 1 error during collection !!!!!!!!! !!!!!!!!!!!!!!!!!!!! 1 error in 0.12s zhangwendeMacBook-Pro:MB215Lab4 zhangmin$

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!