Read The Information Given Below Carefully And Write A List #414
Read the information given below carefully and write a list comprehension such that the output is: [‘e’, ‘o’] <pre><code class="language-python">w="hello" v=('a', 'e', 'i', 'o', 'u')</code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 List Comprehension - Python List Comprehension - Quiz No.1.
Read the information given below carefully and write a list comprehension such that the output is: [‘e’, ‘o’]
w="hello" v=('a', 'e', 'i', 'o', 'u')
[x for w in v if x in v]
[x for x in w if x in v]
[x for x in v if w in v]
[x for v in w for x in w]