s = input(' Enter a monomial: ')
coeff, power = s.partition('x^')
print('{}x^{}'.format(int(coeff) * int(power), int(power) - 1)
I do not know what else is needed at the end of this code. Is there something that needs to be added in?
It's because you're not closing print function, one a close parenthesis at the end is missing. I suggest you to use some linter to debug and find warning and errors. The final code should be as below:
s = input(' Enter a monomial: ')
coeff, power = s.partition('x^')
print('{}x^{}'.format(int(coeff) * int(power), int(power) - 1))
coeff, power. You can use split function instead and the replace that line as following: coeff, power = s.split('x^')linter e.g. pylint to make debugging easier and you don't face this error next time :)