NIELIT O Level Exam

<p>What will be the output of the following Python code?</p><pre>for i in range(2.0):<br>&nbsp; &nbsp; print(i)</pre>

What will be the output of the following Python code?

for i in range(2.0):
    print(i)


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

for i in range(2.0):
    print(i)

A. 0.0 1.0

B. 0 1

C. error एरर

D. none of the mentioned उल्लेखित कोई नहीं




Correct Answer is :

C. error



Explanation
Object of type float cannot be interpreted as an integer.
Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad