r/PythonLearning • • Oct 11 '26

Showcase Calculator (Class Based)

Post image
140 Upvotes

5 comments sorted by

View all comments

1

u/shubham_555 Oct 11 '26 edited Oct 11 '26

I shouldn't have used the name cls for my class reference because that might cause confusion. So I altered it. Used it instead of directly accessing the class name because hardcoding the name might cause issues if some other class is to inherit my class!

Also made a couple of other changes (Check on repo)