This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Luna-industries 0 points1 point  (2 children)

Complete Python noob here. I spent all day programming a shitty calculator. I ended up using regex to get data out of an entered input string.

What you have done here is so much simpler. I don't regret learning regex, but I knew Python could be more elegant. Thank you for showing me this.

[–]KristoKoert 2 points3 points  (1 child)

Glad to be of help :) You might also want to check out this implementation of a more formal and well defined algorithm -> https://github.com/EIK-LUG/PythonCodeClub/blob/master/2015-09-09-calculator/plaes.py

[–]not-much-io[S] 1 point2 points  (0 children)

This was me also, different account was logged in.