Re: [Tutor] fractions from Fractions

2018-02-05 Thread Steven D'Aprano
Hi Rex, My comments below. On Sun, Feb 04, 2018 at 11:11:23PM -0500, Rex Florian via Tutor wrote: > I have written a program to generate the array that describes the > finite simple continued fraction from any fractional input. The input > is any fraction, num/den, and the output is the arra

Re: [Tutor] fractions from Fractions

2018-02-05 Thread Alan Gauld via Tutor
On 05/02/18 04:11, Rex Florian via Tutor wrote: > The problem is one of the PyCharm problems and when I > use the check feature it tells me my answer is incorrect. What input did you use and what output did you get? So far as I can tell your algorithm is correct, although I'm not sure why you

[Tutor] fractions from Fractions

2018-02-05 Thread Rex Florian via Tutor
I have written a program to generate the array that describes the finite simple continued fraction from any fractional input. The input is any fraction, num/den, and the output is the array. The program works and I am happy with the work. The problem is one of the PyCharm problems and when I