Python Challenges: Check if an integer is the power of another integer
Write a Python program to check if an integer is the power of another integer.
Explanation:

Sample Solution:
Python Code:
Sample Output:
True False True
Flowchart:

Python Code Editor:
Contribute your code and comments through Disqus.
Previous: Write a Python program to check if a number is a perfect square.
Next: Write a Python program to check if a number is a power of a given base.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.