#gather inputs
inp1=int(input("Input the first number"))
inp2=input("Input operators + - * / ** // or %")
inp3=int(input("Input the third number"))
#declare out value and a string literal for the answer statement
out = 0
answer_txt = "\nyour answer is:"
#tell the user what the program is calculating
print(r"you are calculating the numbers", inp1, "and", inp3, "with the operator", inp2, sep=" ", end=".")
#run calculation based on second input
if (inp2 == "+"):
out = inp1 + inp3
if (inp2 == "-"):
out = inp1 - inp3
if (inp2 == "*"):
out = inp1 * inp3
if (inp2 == "/"):
out = inp1 / inp3
if (inp2 == "**"):
out = inp1 ** inp3
if (inp2 == "//"):
out = inp1 // inp3
if (inp2 == "%"):
out = inp1 % inp3
#print answer
print(answer_txt, out, sep=" ")
you are calculating with the numbers 1 and 3 with the operator //.
your answer is: 0