Sail E0 Webinar
Question
What is the output of the following?print([i.lower() for i in "HELLO"])
Options:
A .  ['h', 'e', 'l', 'l', 'o'].
B .  'hello'
C .  ['hello'].
D .  hello
Answer: Option A


We are iterating over each letter in the string.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers