Q. Read the information given below carefully and write a list comprehension such that the output is: [‘e’, ‘o’]
Code:
w="hello"
v=('a', 'e', 'i', 'o', 'u')
β
Correct Answer: (B)
[x for x in w if x in v]