My calculator is using strings instead of integers and I am using pydroid 3
def calculate(num1, sign, num2): try: str(sign) int(num1, num2) except: print("invalid input") if sign == "+": answer= num1+num2 return(answer) elif sign == "Ă": answer= num1*num2 return (answer) elif sign == "Ă·": answer= num1/num2+num1%2 return(answer) elif sign == "-": answer= num1-num2 return (answer) else: print("Invalid input") looptimes=0 while True: if looptimes ==0 : num1=input('first number : ') sign=input("sign : ") num2=input("second number : ") else: print(answer) sign=input("sign : ") num2=input(" second number: ") print("Type More for more nos " ) print("Type Enter for results") motive=input("type here: ") if motive == "Enter": answer=calculate(num1, sign , num2) print(answer) break print ('finished') elif motive == "More": answer = calculate(num1 , sign, num2) num1=answer looptimes=looptimes+1 else: break print( "invalid input") It keeps adding strings please help me