[Tutor] Root and power

Job Hernandez jobrh2993 at gmail.com
Thu Jul 30 04:03:36 CEST 2015


Thank you all,\.
Programming  is the hardest thing i have ever tried to learn.

So thank you for your help.

Job

On Tue, Jul 28, 2015 at 8:29 PM, Job Hernandez <jobrh2993 at gmail.com> wrote:

> 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