Vidyalelo
Python · Q69

Python Lists MCQs: Exam Practice for List Concepts

Programming · Python · question 69

Q69

What is the output of print(k) in the following Python code snippet? k = [print(i) for i in my_string if i not in "aeiou"] print(k)

A.
all characters of my_string that aren't vowels
B.
a list of Nones
Answer
C.
list of Trues
D.
list of Falses

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board