Question-134: When you run below program, what would happened or printed on console?
listA = [100, 200, 300]
listB = listA
listC = listB
del listA[0]
del listB[0]
print(listC)
- This would give error
- Get all Questions and Answer from here
- You need to have paid subscription to access all questions
- Thanks for considering Python Certification Material
Answer: C
Exp: You need to remember a concept that list represent location of a data collection in memory and not content itself.
You can access to full explanation to question and answer from this page.