
Post


@PythonDvz C. Both first and second are bound to the same list object. The append method modifies a list in place, so no new object is created. So, ['p', 'y', 't', 'h', 'o', 'n', 3.12] ['p', 'y', 't', 'h', 'o', 'n', 3.12]
English

@PythonDvz C. python being python. `second = first` so it’s the same list. append once, both prints grow 😅
English







