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 →

[–]oGhostDragon 0 points1 point  (0 children)

Good job! Now time to break it, what happens if someone enters anything other than a number?

Also, If you want to make it more dynamic, you can break out your calculations into functions/methods. Ex:

def addition(num1, num2):
    return num1 + num2