Re: [Tutor] Root and power

2015-07-30 Thread Job Hernandez
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 wrote: > How is it going tutors? > > The following problem seems impossible to me: > > "*Write a program that asks the user to enter an

Re: [Tutor] Root and power

2015-07-29 Thread Steven D'Aprano
On Tue, Jul 28, 2015 at 08:29:00PM -0700, Job Hernandez wrote: [...] > 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. Let's suppose the user entered 36. Then

Re: [Tutor] Root and power

2015-07-29 Thread David Palao
2015-07-29 5:29 GMT+02:00 Job Hernandez : > 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 entere

Re: [Tutor] Root and power

2015-07-29 Thread Alan Gauld
On 29/07/15 04:29, Job Hernandez wrote: How is it going tutors? The following problem seems impossible to me: I made a reply in the thread 'Abs' started on July 27th. Basically you can use the pow() function. The power lies between 1-5. The largest root will be the same as the user input sin

[Tutor] Root and power

2015-07-29 Thread Job Hernandez
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