Python-Quizzes | Python List Quiz | Question 20

Last Updated :
Discuss
Comments

Find the output of the following program: 

Python
a = [x for x in (x for x in 'Geeks 22966 for Geeks' if x.isdigit()) if
(x in ([x for x in range(20)]))] 
print(a) 

[2, 2, 9, 6, 6]

[ ]

Compilation error

Runtime error

Share your thoughts in the comments