Dynamic FutureTech

Dynamic FutureTech

Share

06/07/2026

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.

Want your school to be the top-listed School/college in Delhi?
Click here to claim your Sponsored Listing.

Category

Telephone

Address


Paschim Vihar JwalaHeri Market
Delhi
110086