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

Thu Ha

New member
What will be the output of the following Python code snippet?
Code:
k = [print(i) for i in my_string if i not in "aeiou"]
A. prints all the vowels in my_string
B. prints all the consonants in my_string
C. prints all characters of my_string that aren’t vowels
D. prints only on executing print(k)
 

Tìm kiếm

Back
Top