I am stuck on how to make a calculation in a variable. Currently my code will print (for example) : (1,'+',2). But I need the actual sum of the answer.. My code:
def calc(num1,op,num2):
sum = num1,op,num2
print(sum)
num1 = int(input("First number:"))
op = input("Operator:")
num2 = int(input("Second number:"))
calc(num1,op,num2)