This function takes two numbers as parameters, the first number being the coefficient, and the second number being the exponent.

Your function should multiply the two numbers, and then subtract 1 from the exponent. Then, it has to print out an expression (like 28x^7). `"^1"` should not be truncated when exponent = 2.


For example:
```
derive(7, 8)
```
In this case, the function should multiply 7 and 8, and then subtract 1 from 8. It should output `"56x^7"`, the first number 56 being the product of the two numbers, and the second number being the exponent minus 1.

```
derive(7, 8) --> this should output "56x^7" 
derive(5, 9) --> this should output "45x^8" 
```

**Notes:**
* The output of this function should be a string
* The exponent will never be 1, and neither number will ever be 0

Source: codewars | Difficulty: EASY
Tags: Fundamentals

Starter code: def derive(coefficient, exponent):
	

Solutions:
def derive(coefficient, exponent):
	return f'{coefficient * exponent}x^{exponent - 1}'


def derive(coefficient, exponent):
	a = coefficient * exponent
	b = exponent - 1
	txt = '{}x^{}'
	return txt.format(a, b)


def derive(coefficient, exponent):
	return '{}x^{}'.format(coefficient * exponent, exponent - 1)


derive = lambda c, e: str(c * e) + 'x^' + str(e - 1)


def derive(coeff, exp):
	return f'{coeff * exp}x^{exp - 1}'


def derive(coef, exp):
	if exp <= 2:
		exp = 3
	return str(coef * exp) + 'x^' + str(exp - 1)


def derive(coefficient, exponent):
	return str(exponent * coefficient) + 'x^' + str(exponent - 1)
	pass


def derive(c, e):
	if e <= 2:
		e = 3
	return f'{c * e}x^{e - 1}'


def derive(coef, exp):
	return f'{coef * exp}x^{exp - 1}'


derive = lambda coefficient, exponent: f'{coefficient * exponent}x^{exponent - 1}'


derive = lambda x, y: f'{y * x}x^{~-y}'


def derive(coeff, exponent):
	return f'{coeff * exponent}x^{exponent - 1}'


def derive(coefficient: int, exponent: int) -> str:
	return f'{coefficient * exponent}x^{exponent - 1}' if exponent > 2 else f'^{exponent - 1}'


def derive(coefficient, exponent):
	coeff = coefficient * exponent
	return str(coeff) + 'x^' + str(exponent - 1)


def derive(coefficient, exponent):
	coefficient2 = coefficient * exponent
	exponent2 = exponent - 1
	ans = '' + str(coefficient2) + 'x^' + str(exponent2)
	return ans


def derive(coefficient, exponent):
	a = coefficient * exponent
	b = exponent - 1
	return str(a) + 'x^' + str(b)


def derive(coefficient, exponent):
	if exponent != 1 and coefficient != 0 and (exponent != 0):
		product = coefficient * exponent
		new_exponent = exponent - 1
		return str(product) + 'x^' + str(new_exponent)
	else:
		pass


def derive(coefficient, exponent):
	if exponent >= 2 and coefficient * exponent != 0:
		return str(coefficient * exponent) + 'x^' + str(exponent - 1)


def derive(coefficient, exponent):
	value = coefficient * exponent
	ans = exponent - 1
	res = str(value) + 'x^' + str(ans)
	return res


def derive(coefficient, exponent):
	n = coefficient * exponent
	expo = exponent - 1
	return str(n) + 'x^' + str(expo)


def derive(c, e):
	ans = c * e
	power = e - 1
	return f'{ans}x^{power}'


def derive(coefficient, exponent):
	new_exponent = str(exponent - 1)
	return str(coefficient * exponent) + 'x^' + new_exponent


def derive(c, e):
	return f'{c * e}x^{e - 1}'


derive = lambda c, e: '{}x^{}'.format(c * e, e - 1)


def derive(coefficient, exponent):
	result = coefficient * exponent
	output = exponent - 1
	return str(f'{result}x^{output}')


def derive(coefficient, exponent):
	if exponent == 2:
		return str(coefficient * exponent) + 'x^2'
	else:
		return str(coefficient * exponent) + 'x^' + str(exponent - 1)


def derive(coefficient, exponent):
	new_coefficient = coefficient * exponent
	new_exponent = exponent - 1
	ans = str(new_coefficient) + 'x^' + str(new_exponent)
	return ans


def derive(coefficient, exponent):
	new_coeff = coefficient * exponent
	new_exp = exponent - 1
	expression = f'{new_coeff}x^{new_exp}'
	return expression


def derive(cof, exp):
	return '{}x^{}'.format(cof * exp, exp - 1)


def derive(coefficient, exponent):
	x = coefficient * exponent
	y = exponent - 1
	z = str(x) + 'x^' + str(y)
	return z


def derive(coefficient, exponent):
	if exponent == 2:
		mult = coefficient * exponent
		mult = str(mult)
		return mult + 'x'
	else:
		multiply = coefficient * exponent
		n = exponent - 1
		n = str(n)
		multiply = str(multiply)
		return multiply + 'x' + '^' + n


def derive(coefficient, exponent):
	return ''.join(str(int(coefficient * exponent)) + 'x^' + str(int(exponent) - 1))


def derive(coefficient, exponent):
	return f'{coefficient * exponent}x^{exponent - 1}' if exponent > 1 else f'{coefficient * exponent}x'


def derive(coefficient, exponent):
	dv = coefficient * exponent
	ex = exponent - 1
	return str(dv) + 'x^' + str(ex)


def derive(coefficient, exponent):
	result = coefficient * exponent
	re = exponent - 1
	return '{}x^{}'.format(result, re)


def derive(coeff, expo):
	num = coeff * expo
	expo -= 1
	if expo <= 2:
		return string(num)
	else:
		return str(num) + 'x^' + str(expo)


def derive(coefficient, exponent):
	sub = exponent - 1
	multi = coefficient * exponent
	coffie = str(sub)
	ex = str(multi)
	result = ex + 'x^' + coffie
	return result


def derive(coefficient, exponent):
	result = coefficient * exponent
	exponent1 = exponent - 1
	return f'{result}x^{exponent1}'


def derive(coefficient, exponent):
	first_num = coefficient * exponent
	second_num = exponent - 1
	return f'{first_num}x^{second_num}'


def derive(coefficient, exponent):
	result = coefficient * exponent
	exponent_new = exponent - 1
	result = str(result)
	exponent_new = str(exponent_new)
	return result + 'x^' + exponent_new


def derive(coefficient, exponent):
	mult = coefficient * exponent
	exponent -= 1
	return str(mult) + 'x^' + str(exponent)


def derive(coefficient, exponent):
	new_coeff = coefficient * exponent
	new_expo = exponent - 1
	return str(new_coeff) + 'x^' + str(new_expo)


def derive(coefficient, exponent):
	result = ''
	product = coefficient * exponent
	exponent = exponent - 1
	result = str(product) + 'x^' + str(exponent)
	return result
	pass


def derive(coefficient, exponent):
	answer = str(coefficient * exponent) + 'x^' + str(exponent - 1)
	return answer


def derive(c, e):
	num = c * e
	pow = e - 1
	return str(num) + 'x^' + str(pow)


def derive(coefficient, exponent):
	new_coeff = coefficient * exponent
	result = '%dx^%d'
	new_exp = exponent - 1
	return result % (new_coeff, new_exp)


def derive(coefficient, exponent):
	firstnum = coefficient * exponent
	secondnum = exponent - 1
	return str(firstnum) + 'x^' + str(secondnum)


def derive(coefficient, exponent):
	s1 = str(coefficient * exponent)
	s2 = str(exponent - 1)
	return s1 + 'x^' + s2


def derive(coefficient, exponent):
	coEx = coefficient * exponent
	expoMinus = exponent - 1
	return str(coEx) + 'x^' + str(expoMinus)


derive = lambda i, j: f'{i * j}x^{j - 1}'


derive = lambda i, j: str(i * j) + 'x^' + str(j - 1)


def derive(a, b):
	return f'{int(a) * int(b)}x^{int(b) - 1}'


def derive(coefficient, exponent):
	coe = coefficient * exponent
	exp = exponent - 1
	d = f'{coe}x^{exp}'
	return d


def derive(coefficient, exponent):
	result = coefficient * exponent
	print(result)
	return str(result) + 'x^' + str(exponent - 1)


def derive(coefficient, exponent):
	product = coefficient * exponent
	ex_new = exponent - 1
	return f'{product}x^{ex_new}'


def derive(coefficient, exponent):
	a = coefficient * exponent
	b = abs(1 - exponent)
	return f'{a}x^{b}'


def derive(coefficient, exponent):
	x = []
	y = str(coefficient * exponent)
	x.append(y)
	x.append('x')
	x.append('^')
	z = str(exponent - 1)
	x.append(z)
	return ''.join(x)


def derive(c, e):
	if e > 2:
		code = e - 1
	else:
		code = e
	return str(c * e) + 'x^' + str(code)


def derive(c, e):
	r1 = c * e
	r2 = e - 1
	return str(r1) + 'x^' + str(r2)


def derive(coefficient, exponent):
	mul = coefficient * exponent
	sub = exponent - 1
	return f'{mul}x^{sub}'


def derive(coefficient, exponent):
	prod = coefficient * exponent
	exp = exponent - 1
	return '{}x^{}'.format(prod, exp)


def derive(coefficient, exponent):
	base = str(coefficient * exponent)
	exp = str(exponent - 1)
	return '%sx^%s' % (base, exp)


def derive(coefficient, exponent):
	product = coefficient * exponent
	result_from_subtract = exponent - 1
	result = str(product) + 'x' + '^' + str(result_from_subtract)
	return result


def derive(coefficient, exponent):
	new_coefficient = coefficient * exponent
	new_exponent = exponent - 1
	result = str(new_coefficient) + 'x^' + str(new_exponent)
	return result


def derive(a, b):
	res = a * b
	return f'{res}x^{b - 1}'


def derive(coefficient, exponent):
	derivitave = str(coefficient * exponent) + 'x^' + str(exponent - 1)
	return derivitave


def derive(coefficient, exponent):
	coeff_der = coefficient * exponent
	exp_der = exponent - 1
	return '{}x^{}'.format(coeff_der, exp_der)


def derive(a, b):
	x = a * b
	y = b - 1
	return f'{x}x^{y}'


def derive(c, e):
	(p1, p2) = (c * e, e - 1)
	return f'{p1}x^{p2}'


def derive(coefficient, exponent):
	c = coefficient * exponent
	s = str(c) + 'x^' + str(exponent - 1)
	return s
	pass


def derive(a, b):
	a = a * b
	b = b - 1
	return str(a) + 'x^' + str(b)


def derive(coefficient, exponent):
	product = coefficient * exponent
	x = exponent - 1
	return str(product) + 'x^' + str(x)


def derive(coefficient, exponent):
	lololololo = coefficient * exponent
	hehe = exponent - 1
	print('\\U0001f600')
	print('\\U0001F923')
	return str(lololololo) + 'x' + '^' + str(hehe)


def derive(coefficient, exponent):
	poo = coefficient * exponent
	return f'{poo}x^{int(exponent - 1)}'


def derive(coefficient, exponent):
	square = coefficient * exponent
	return f'{square}x^{int(exponent - 1)}'


def derive(coefficient, exponent):
	if exponent > 1:
		x = str(coefficient * exponent)
		y = str(exponent - 1)
		return str(x + 'x^' + y)


def derive(coefficient, exponent):
	a = [str(coefficient * exponent), str(exponent - 1)]
	return a[0] + 'x^' + a[1]


def derive(coefficient, exponent):
	coeff = coefficient * exponent
	exp = exponent - 1
	return f'{coeff}x^{exp}'


def derive(co, ex):
	mult = co * ex
	dif = ex - 1
	return str(mult) + 'x^' + str(dif)


def derive(coefficient, exponent):
	coef = str(coefficient * exponent)
	exp = str(exponent - 1)
	return coef + 'x^' + exp


def derive(c, e):
	c = c * e
	e -= 1
	return str(c) + 'x^' + str(e)


def derive(a, b):
	return '{}x^{}'.format(a * b, b - 1)


def derive(ar, br):
	a = ar * br
	b = br - 1
	txt = '{}x^{}'
	return txt.format(a, b)