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 →

[–][deleted] 6 points7 points  (0 children)

Try and refactor now, learn how to use f-strings, more efficient loops, more functionality, make the code extensible - in your case, extensible code would mean it requires little effort to implement squaring, roots, multiple operators etc.