Python Recursion Exercise - Stack Overflow
stackoverflow.com › questions › 4429462Dec 13, 2010 · I am doing exercise on Singpath and I am stuck at this question. This question is under recursion exercises but I have no idea what the question means. 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. Update:
Python recursion exercises - Stack Overflow
stackoverflow.com › questions › 27367867Python recursion exercises Ask Question Asked 7 years, 3 months ago Modified 7 years, 3 months ago Viewed 1k times -1 "Write a function bin_rep (n) that returns a string with the binary representation of n. Extend bin_rep (n) to create base_rep (n, k) to give a string representing non-netavie integer n in base k, where 2 <= k <= 10.