Dynamic FutureTech
Answer in caption👇
Answer= B) ['apple'] then ['apple', 'banana']
Explanation:
Think of it like this: normally you'd expect a fresh empty list [] every time you call the function without giving one. But Python doesn't do that — it creates that empty list just once, right when you write the function, and then keeps reusing the same list every single time you call it.
So when you call it the first time, "apple" goes into that list. Second time you call it, Python doesn't give you a new empty list — it hands you the same list from before, which still has "apple" in it, and just adds "banana" to it too.
That's why the output is ['apple'] and then ['apple', 'banana'] — not two separate lists like you'd expect.
Click here to claim your Sponsored Listing.
Category
Contact the school
Telephone
Address
Paschim Vihar JwalaHeri Market
Delhi
110086