Solved

What Will Be the Output After the Following Code Is

Question 10

Multiple Choice

What will be the output after the following code is executed and the user enters 75 and -5 at the first two prompts?
What will be the output after the following code is executed and the user enters 75 and -5 at the first two prompts?   A)  ERROR: cannot have 0 items B)  ERROR: cannot have 0 items ERROR: number of items can't be negative C)  ERROR: number of items can't be negative D)  Nothing; there is no print statement to display average. The ValueError will not catch the error.


A) ERROR: cannot have 0 items
B) ERROR: cannot have 0 items
ERROR: number of items can't be negative
C) ERROR: number of items can't be negative
D) Nothing; there is no print statement to display average. The ValueError will not catch the error.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions