a,b = 2,3 and [a,b] = [2,3]

Eko palypse ekopalypse at gmail.com
Sun Sep 1 19:46:15 EDT 2019


Am Montag, 2. September 2019 00:49:05 UTC+2 schrieb Hongyi Zhao:
> Hi,
> 
> What's differences:
> 
> a,b = 2,3 and [a,b] = [2,3]
> 
> Regards

In this example the result is the same but the second one
builds, internally, an additional list, therefore isn't as sufficient
as the first one.



More information about the Python-list mailing list