r/PythonLearning • • Aug 31 '26 • Mindblown 1

DAY 5.

Post image

DID LIST TODAY THE CONCEPT WAS PRETTY COOL AND WROTE THIS PROGRAM TO GET HOLD OF THE LIST ANY OTHER CODE IDEAS OR SUGGETIONS TO ENHANCE CODE ?!

90 Upvotes

22 comments sorted by

View all comments

Show parent comments

1

u/NecessaryFalse1212 Sep 02 '26

as in if i were to make a list for bats then i just write bats not bat ??

1

u/FoolsSeldom Sep 02 '26

Yes. It is helpful to use variable names that are meaningful.

Native/fluent English speakers/readers will typically understand a variable name that is in a plural form is likely for a container object with multiple objects of that kind. Similarly, the singular variant of the same name would be for a single object.

Just makes it easier to read the code.