Newline (NuBe Question)

DL Neil PythonList at danceswithmice.info
Sun Nov 26 17:01:51 EST 2023


On 11/27/2023 1:08 AM, Roel Schroeven via Python-list wrote:
> I prefer namedtuples or dataclasses over tuples. They allow you to refer 
> to their fields by name instead of index: student.gpa is much clearer 
> than student[2], and makes it less likely to accidentally refer to the 
> wrong field.

+1
readability/comprehension!

--
Regards =dn


More information about the Python-list mailing list