adplus-dvertising
frame-decoration

Question

What is the output of the following?
print([i.lower() for i in "HELLO"])

a.

[‘h’, ‘e’, ‘l’, ‘l’, ‘o’].

b.

‘hello’

c.

[‘hello’].

d.

hello

Posted under Python

Answer: (a).[‘h’, ‘e’, ‘l’, ‘l’, ‘o’].

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the following?