[Tutor] Root and power

Job Hernandez jobrh2993 at gmail.com
Wed Jul 29 05:29:00 CEST 2015


How is it going tutors?

The following problem seems impossible to me:

"*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 (root**pwr) is
equal to the integer entered by the user. If no such pair of integers
exists, it should print a message to that effect*."

I would like to solve this problem myself so please don't give me the
solution.

 I need to learn how in the world do find the root and power of an integer
that x user entered? I haven been looking on the python website for an
appropriate function but I have not.

If you have the time can you please tell me about the functions and other
facts I need to know in order to solve this problem?

Is there a book you guys recommend for total beginners who have no ideal of
what computer science and programming is?

Thank you,

Job


More information about the Tutor mailing list