MCQs > IT & Programming > Python > What gets printed: a = [0] b = [a] *4 a[0] = 2 print(b)

Python MCQs

What gets printed: a = [0] b = [a] *4 a[0] = 2 print(b)

Answer

Correct Answer: [[2], [2], [2], [2]]

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

More Python MCQ Questions

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it