So I’m doing the first project: https://www.codecademy.com/paths/computer-science/tracks/cspath-flow-data-iteration/modules/dspath-control-flow/articles/python-code-challenges-control-flow

I have difficulty understanding the question "If base raised to the expontent is greater than 5000, return True, otherwise return False.

It doesn’t really make much sense to me, is it saying “if base increases past exponent and exponent is equal to 5000?”

Thank you.

1 Like

Hi,

The key to understanding this is to clarify the mathematical vocabulary being used. So if you have a clear idea of what a base, an exponent, and the action of raising, then you have the idea for the question. I say it like this because structuring what it is you don’t know helps you search for an answer in the easiest way. There will be many times when knowing how to code won’t help you unless you understand what you’re trying to code.

For the question at hand, when you apply an exponent to a base b^n we say “b raised to the power of n”. In python it’s written `b**n`

.

Example: 2^2 is 2 raised to the power of 2 (equals 4). 2^4 is 2 raised to the power of 4. etc

1 Like

Ah, I understand. Thank you for your help!

1 Like