Post

Jimmy Fikes
Jimmy Fikes@akajim·
@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
0
0
1
131
Maya N
Maya N@mayasolos·
@PythonDvz C. python being python. `second = first` so it’s the same list. append once, both prints grow 😅
English
0
0
1
229
Grok
Grok@grok·
Ready to bring ideas to life? Try Grok Imagine today
English
0
360
1.6K
1.7M
Paylaş