code: def calc(rest):
  	"Perform a basic calculation"
  	mo = calc_exp.match(rest)
  	if mo:
  		try:
  			return str(eval(rest))
  		except Exception:
  			return "eval failed... check your syntax"
  	else:
  		return "misformatted arithmetic!f calc(rest):
  	"Perform a basic calculation"
  	mo = calc_exp.match(rest)
  	if mo:
  		try:
  			return str(eval(rest))
  		except Exception:
  			return "eval failed... check your syntax"
  	else:
  		return "misformatted arithmetic!"
docs: Perform a basic calculation