Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What will be the output of the following Python code snippet?
print([i.lower() for i in “HELLO”])

What will be the output of the following Python code snippet?
print([i.lower() for i in “HELLO”])
a) [‘h’, ‘e’, ‘l’, ‘l’, ‘o’]
b) ‘hello’
c) [‘hello’]
d) hello

Answer: a
Explanation: We are iterating over each letter in the string.

Join The Discussion