title: Finding out whether a is a power of b
body: <p>I'm currently using singpath.com to practice on my python, but I face an issue with a problem:</p>
  
  <p>A number, a, is a power of b if it is divisible by b and a/b is a power of b. 
  Write a function called is_power that takes parameters a and b and returns True if a is a power of b.</p>
  
  <pre><code>def is_power(a,b):
      c = a/b
      if (((a%b) == 0) and ((c%b) == 0)):
          return True
      else:
          return False 
  </code></pre>
  
  <p>Above is my solution but the system prompt me to generalize my solution.
  Can anyone tell me whats wrong with my solution?</p>