Re: [Tutor] Fwd: Re: fractions from Fractions

2018-02-06 Thread Wolfgang Maier
On 06.02.2018 10:53, Alan Gauld via Tutor wrote: You would have needed something like fraction = Fraction(input('>')) Assuming Fraction has a string based constructor which I don't think it does. I really don't think Fraction helps you here. Oh, most certainly it has - though it may accept

Re: [Tutor] Fwd: Re: fractions from Fractions

2018-02-06 Thread Alan Gauld via Tutor
On 06/02/18 09:26, Alan Gauld via Tutor wrote: > Forwarding to list, please always use Reply ALL or Reply LIst to send > mail to the list. > > What input did you use and what output did you get? > > Input 239/30  --->  7 1 29 > Input 415/93  --->  4 2 6 7 > > So far as I can tell your

[Tutor] Fwd: Re: fractions from Fractions

2018-02-06 Thread Alan Gauld via Tutor
Forwarding to list, please always use Reply ALL or Reply LIst to send mail to the list. -Original Message- From: Alan Gauld via Tutor To: tutor Sent: Mon, Feb 5, 2018 4:50 am Subject: Re: [Tutor] fractions from Fractions On 05/02/18 04:11, Rex