Examveda

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

C. list of Trues

D. list of Falses

Answer: Option B


This Question Belongs to Python Program >> Lists In Python

Join The Discussion

Related Questions on Lists in Python