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.
Correct Answer:
Verified
Q17: Which of the following is associated with
Q18: What is the process of retrieving data
Q19: If a file with the specified name
Q20: It is possible to create a while
Q21: Which statement can be used to handle
Q23: If data is retrieved from a file
Q24: When a program needs to save data
Q25: Which method could be used to strip
Q26: Which of the following is the correct
Q27: When data is written to a file,it
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents