I'm writing a program that takes user input and compares it to different command strings. When I attempt to run the program, I get a SyntaxError about the line if method = 'addition': and IDLE highlights the = in red.
num1 = input('Enter your first value: ')
num2 = input('Enter your second value: ')
method = input('Which method will you be using? ')
if method = 'addition':
solveFor = num1 + num2
elif method = 'subtraction':
solveFor = num1 - num2
else:
print("Please enter 'addition' or 'subtraction'")