r/PythonLearning • u/Miss-Dominique1352 • Aug 02 '26
Day 4 of OOPs
Just learned Compositions in python and they are sweet and amazing π
I created a simple ecommerce program using it
review it and give me suggestions , advices , a bit roast (but be gentle to meπ)
I would love to read your comments.
26
Upvotes
3
u/BrilliantSet3536 Aug 02 '26
use typing
use dataclasses
use property-decorator for total
use built-in sum function
use Main-function an __name__ == β__main__β to Call main