MCQ Answer

<p>What will be the output of the following Python code snippet?</p><pre><span style="font-size: 14px;">print([i.lower() for i in "HELLO"])</span></pre>

What will be the output of the following Python code snippet?

print([i.lower() for i in "HELLO"])


निम्नलिखित Python कोड स्निपेट का आउटपुट क्या होगा?

print([i.lower() for i in "HELLO"])
Topic : Sequence data types in python

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

B. ‘hello’ ‘हैलो’

C. [‘hello’] [‘हैलो’]

D. hello हैलो




Correct Answer is :

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



Explanation
We are iterating over each letter in the string.
Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad