title: How can I calculate whether one number is a power of another number?
body: <p>How do I make the <code>is_power_of</code> function return whether the number is a power of the given base? base is assumed to be a positive number.</p>
  <pre><code>def is_power_of(number, base):
    # Base case: when number is smaller than base.
    if number &lt; base:
      # If number is equal to 1, it's a power (base**0).
      return __
  
    # Recursive case: keep dividing number by base.
    return is_power_of(__, ___)
  
  print(is_power_of(8,2)) # Should be True
  print(is_power_of(64,4)) # Should be True
  print(is_power_of(70,10)) # Should be False
  </code></pre>