A Python program that can perform addition, subtraction, multiplication and division operations. The user can enter two numbers and an operator, and the result is calculated and output. Implement the functions of the calculator (+, -, *, /) and handle abnormal situations, such as: the input is not a number, the divisor is 0, etc.
USE python calculator.py
TO RUN THE PROGRAM