Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- num1 = int(input("Type a number"))
- num2 = int(input("And another"))
- op = input("What operation? >")
- if op == "+":
- ans = num1 + num2
- elif op == "-":
- ans = num1 - num2
- elif op =="/":
- ans = num1 / num2
- else:
- ans = num1 * num2
- print(ans)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement