Dark theme

Hints


Firstly, input doesn't return numbers; even if you type, for example, the character "2", computers see the number 2 and the character "2" as completely different and unrelated. Use type(variable_name) to work out what input() returns, and then thing about how to convert it into a number.

To raise to the power, used **, but remember that a**a+b might not work as you need (infact, why not check if it does!).


One answer