Re:Why I'm still using Python
by snowpid on Monday January 02, 2023 @11:26AM
(#34219726)
your example has also multiply statements. The question is more important: Which syntax to a more generally better readability. (as this is solvable in most languages)
Re:Why I'm still using Python
by pharmakom on Monday January 02, 2023 @11:52AM
(#34220133)
No, it is built from pure expressions. This means that our list is defined in one block (everything within the [ ] tokens) and immutability is enforced by the compiler.
I don’t see how this can be done in Python without using mutation, which makes code scattered across multiple statements