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?”
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
Example: 2^2 is 2 raised to the power of 2 (equals 4). 2^4 is 2 raised to the power of 4. etc
Ah, I understand. Thank you for your help!