I am sure you are using an editor but if doesn’t work you can search online python compiler .
Answer :
We know that a calculater should be able to calculate ( addition , subs traction, multiplication, division …etc)
# first takng inputs
num1 = float(input("Enter first number: "))
num2 = float(input("Enter second number: "))
# operations
print("Operation: +, -, *, /")
select = input("Select operations: ")
# check operations and display result
# add(+) two numbers
if select == "+":
print(num1, "+", num2, "=", num1+num2)
# subtract(-) two numbers
elif select == "-":
print(num1, "-", num2, "=", num1-num2)
# multiplies(*) two numbers
elif select == "*":
print(num1, "*", num2, "=", num1*num2)
# divides(/) two numbers
elif select == "/":
print(num1, "/", num2, "=", num1/num2)
else:
print("Invalid input")