MCQs > IT & Programming > Python > What will be the output: a = [1, 2, 3, 4] for (i, x) in enumerate(a): for (j, y) in enumerate(a[i:]): print j, print

Python MCQs

What will be the output: a = [1, 2, 3, 4] for (i, x) in enumerate(a): for (j, y) in enumerate(a[i:]): print j, print

Answer

Correct Answer: 0 1 2 3 0 1 2 0 1 0

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