r/PythonLearning • • Oct 11 '26

Showcase Calculator (Class Based)

Post image
140 Upvotes

5 comments sorted by

•

u/Sea-Ad7805 Oct 11 '26

Run this program by clicking Memory Graph Web Debugger and see its state change step by step.

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)

1

u/Philin_Lemo Oct 11 '26

print(eval(intup()))

0

u/jaitanwar Oct 13 '26

nice work man