# Exercise 7 Calculator while True: calculation = input("Equation: ") l = calculation.split(' ') x = int(l[0]) y = int(l[2]) o = l[1] #~ ['653', '+', '6524626'] if o=="+": z= x+y elif o=="-": z=x-y print(z) # NICHT: fh.write(x + " " + operator + " ") #~ fh.write("{} + {}".format(op1, op2))