Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("""Operations:
- * : Multiplcations
- / : divide
- - :subctract
- + : add.""")
- operator = input("Please enter an operation: ")
- num1 = float(input("Please enter the first number: "))
- num2 = float(input("Please enter the first second: "))
- if operator == "*":
- print("Result: ", num1 * num2)
- elif operator == "/":
- print("Result: ", num1 / num2)
- elif operator == "-":
- print("Result: ", num1 - num2)
- elif operator == "+":
- print("Result: ", num1 + num2)
- else:
- print("Invaild operator! please try again.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement