#coding=utf-8 __author__ = 'Nastya' print("Calc. Ver 0.0.2") x1 = int(raw_input("Value 1: ")) x2 = int(raw_input("Value 2: ")) while True: print("Choose operation:\n*\t/\t+\t-") operation = raw_input(">> ") result = None if operation == '+': result = x1 + x2 elif operation == '-': result = x1 - x2 elif operation == '*': result = x1 * x2 elif operation == '/': result = x1 / x2 print "Res:", str(result)