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"

See more answers at brainly.com

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.