Python Challenges: Check if a number is a power of a given base
Write a Python program to check if a number is a power of a given base.
Sample Solution:
Python Code:
Sample Output:
False True False True False True True True True False
Flowchart:

Python Code Editor:
Contribute your code and comments through Disqus.
Previous: Write a Python program to check if an integer is the power of another integer.
Next: Write a Python program to find a missing number from a list.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.