Skip to main content
JourneyUncommon
Toggle theme
Sign In
Sign Up
Toggle theme
Home
/
Practice
/
Python
medium
Python
mutable default trap
Single-choice MCQ
2,080 views
What will this output?
class A: val = [] a1 = A() a2 = A() a1.val.append(1) print(a2.val)