Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if function_type == 'add' or 'subtract' or 'multiply' or 'divide':
- print("Correct Operation!")
- else:
- print("Incorrect Operation")
- quit()
- num_1 = float(input("First Number: "))
- num_2 = float(input("Second Number: "))
- if function_type == "add":
- print(num_1 + num_2)
- if function_type == "subtract":
- print(num_1 - num_2)
- if function_type == "multiply":
- print(num_1 * num_2)
- if function_type == "divide":
- print(num_1 / num_2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement