Classic python quirk: Modifying a list through a different name

Answer: A (yes, the list `a` gets modified!) Solution: Let's see what's happening under the hood. a = [2,4,6,8,9] creates a list with those values, and attaches the name `a` to it. b = a this looks up the list referenced by `a`, and gives it an additional name, `b`. So now +



United States เทรนด์
Loading...

Something went wrong.


Something went wrong.