Certified Entry-Level Python Programmer (PCEP-30-02) — Question 32
Which of the following function definition does not return any value?
Answer options
- A. A function that converts an uppercase letter to lowercase.
- B. A function that returns a random integer from 1 to 100.
- C. A function that prints integers from 1 to 100.
Correct answer: C
Explanation
The correct answer is C because it describes a function that performs a print operation and does not return any value. In contrast, options A and B both indicate functions that return a specific value, either by converting letters or generating random integers.