New assignmens ...

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Oct 22 19:51:05 EDT 2021


On 23/10/21 8:49 am, dn wrote:
> Whereas, creating a list (or tuple...) is legal because the structure's
> name is an "identifier"!

No, the restriction only applies to the LHS. The list construction
is on the RHS.

-- 
Greg



More information about the Python-list mailing list