On 23/02/2023 02:25, Hen Hanna wrote:

i sometimes  put  extra  commas...  as:

                                [  1, 2,  3,  4,     ]
That is a good idea.
Even more so when the items are on separate lines:
    [
        "spam",
        "eggs",
        "cheese",
    ]
and you may want to change the order.

so it is (or may be)  easier  to add things   later.

            -----------  i can think of putting extra final  ;   for the same 
reason.
That may not be such a good idea.  Writing multiple statements on one line is generally discouraged (notwithstanding that IMO it is occasionally appropriate).

Rob Cliffe
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to