MCQs > IT & Programming > Python > Output of the following Python code? import sys rList = ['a', 0, 2] for bn in rList:

Python MCQs

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

import sys

rList = ['a', 0, 2]

for bn in rList:

a


2

result 2 is 2.5 0


2

result 2 is 2.5


Answer

Correct Answer:

Code will give a compilation error.

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it