I’ve noticed this comment seems superfluous, and perhaps misleading:
# Complete the function. It must return the cube of the base
I believe you can just remove that comment, as there is already another comment right above the power function that gives the correct guidance:
# This function returns the number to the exponent power.
Also, if the goal of these levels is to get players to implement these algorithms from scratch, perhaps you could blacklist things like JavaScript’s Math.pow() and Python’s exponentiation operator (**).
is it Cubic Minefield or Exponential Minefield?
"# To find the path use a cubic equation"
"# This function returns the number to the exponent power."
"# Complete the function. It must return the cube of the base"
language revision needed:
"# This function returns the number multiplied by the times"
"# Don’t change the follow code"
NB: a well placed return number**exponent solves the level