Report Bug

Qus

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)
Qusनिम्नलिखित Python कोड स्निपेट में प्रिंट (k) का आउटपुट क्या है?


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


Solution
B. a list of Nones



Explanation
print() returns None.
CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad