#adding two variables

def calculate(op1, op2, f):
  if f == "add":
    return op1 + op2
    
  elif f == "subtract":
	return op1 - op2
	
  elif f == "multiply":
	return op1 * op2
	
  elif	 f == "divide":
	return op1 / op2  


    
