import math import time #Don't touch the code in any way! print('Calculator 0.0') playAgain = 'yes' while playAgain == 'yes' or playAgain == 'y': print('Enter a this style of equation:') print('3 x + 2 = 14 or 3 x - 23 = 15') print('There must be spaces between all numbers and characters.') a,b,c,d,e,f = input().split() if c == '-': g = int(f) + int(d) else: g = int(f) - int(d) h = int(g) / int(a) print('Calculating...') time.sleep(1) print(str(b) + ' = ' + str(h)) print('Do you want to calculate another number?') playAgain = input() if playAgain == 'no' or playAgain == 'n': print('Sorry to see you go. Please come again.') time.sleep(10) #input(int char + int = int)