What is the value of variable 'k' in the below shown code?

Questions & AnswersCategory: PythonWhat is the value of variable 'k' in the below shown code?
Geek Boy Staff asked 2 years ago

What is the value of variable ‘k’ in the below shown code?

>k = [print(i) for i in 'hello' if i not in 'aeiou']

a. [None, None, None] with Python 2.x
b. [‘h’,’e’,’l’,’l’,’o’]
c. [None, None, None] with Python 3.x
d. [‘h’,’l’,’l’]