Take the Derivative

Python

def derive(coeff, exp):
    return str(coeff * exp) + "x^" + str(exp - 1);

Tags

  1. python (Private)
  2. 8-kyu (Private)
  3. codewars (Private)
  4. answer (Private)