Basic Python programs create a Python program that acts as a simple calculator. It should take two numbers and an operator (+, -, *, /) as input and provide the result of …