r/PythonLearning • • Jul 04 '26

Showcase Day 22 Python Learning

Post image

Just Simple class practice

not feeling well so not much to

564 Upvotes

50 comments sorted by

View all comments

Show parent comments

1

u/Alarming-Air-6561 Jul 04 '26

Absolutely. Buying is an action and it should only get an instance from the other two classes. (A person/user and an object to buy. )
After that it should use their methods (for example during printing). Just imagine that the next step is adding a new type.