🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

निम्नलिखित कोड का परिणाम क्या है स्निपेट?

What is the output of the following code snippet ?

print([i.lower() for i in “HELLO”])
A
hello
B
[‘h’, ‘e’, ‘l’, ‘l’, ‘o’]
C
hel
D
HELLO
Explanation

Sure!

The code converts each character in "HELLO" to lowercase using .lower(), resulting in the list ['h', 'e', 'l', 'l', 'o'].

Answer: (B) ['h', 'e', 'l', 'l', 'o'].

Correct Answer: B) [‘h’, ‘e’, ‘l’, ‘l’, ‘o’]

Latest Updates