About this question

Mutable Default Argument

Medium · Code Analysis · Quant Trader interview question · python, mutable, default-argument, code-analysis

Consider the following Python function: You call this function twice: How many items are in the orders list after these two calls?