Python-Quizzes | Python List Quiz | Question 20
Question 20: Find the output of the following program:
(A) [2, 2, 9, 6, 6]
(B) [ ]
(C) Compilation error
(D) Runtime error
Explanation: Since here x has not been converted to int, the condition in the if statement fails and therefore, the list remains empty.
Quiz of this Question