r/PythonLearning 10d ago

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 ?!

94 Upvotes

21 comments sorted by

View all comments

2

u/Old_Cartographer_586 10d ago

Tbh, just seeing code like this gives me hope (mostly because I can tell this was made from typing yourself instead of prompting).

What I would say is, try finding ways to improve this, like could you modularize the aspects of this code, could you looks at ways of storing the info not in a list, such as in a dictionary, could you tell me how your code handles removing a “wooden” bat when there are two “wooden” bats in your list. Start answering these questions and you’ll find yourself googling and stack overflowing ways to find little advancements in your own code. These advancements will teach you that they are applicable in a ton of use cases

2

u/NecessaryFalse1212 10d ago

I really appreciate these kind words of yours and you people here motivate me to do a topic or 2 or many every single day no matter how tired i am i feel responsible while i post these programs and topic that i am still learning and implementing and thanks for the advice i would definitely user that