+ 6
[Solved] Wondering how id() function works!?
Why on earth this code returns "True" and these objects have the same id? print(id([['1'],['2']])) print(id(['abc','def'])) print(id([['1'],['2']]) == id(['abc','def']))
1 Answer
+ 9
Ids play with objects not with expressions.
https://code.sololearn.com/cjsc0lBa578b/?ref=app