book question is :
write a program that asks the user to enter an integer and prints two integers, root and pwr, such that 0 < pwr < 6 and root**pwr is equal to the integer entered by the user. if no such pairing exists state a message to that effect.
so far i have :
number = int(raw_input('Enter an integer: '))
root=0
pwr=0
while root**pwr <= number and pwr<6:
pwr +=1
##need to check if different roots will work before
increasing pwr again##
if root**pwr = number:
print root,',',power
else:
print 'No pair of numbers relate exponentially to the given input"

Hey! We 've verified this expert answer for you, click below to unlock the details :)

I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!

Also, there will always be a solution as root^1 will equal input number when root equals number.

Looking for something else?

Not the answer you are looking for? Search for more explanations.

## More answers

Looking for something else?

Not the answer you are looking for? Search for more explanations.