Think you know Python lists? Think again 😏 One tiny function. One big interview trap. This is why understanding mutable default arguments can save you from real bugs in production code. Do you know why the second output isn’t [2]? 👀#Python #Coding #Programming #Developers #TechLearning
I don't understand the question Because I have never studied python You're a genius in this as you studied it 🙃
D
A and D
C as when func is called first with assigning value 1 to a It will print [1] and second time [2]
C
C
C
C
D