Re: [Tutor] The whole Roman to Dec and vice versa issue

2007-03-11 Thread John Fouhy
On 12/03/07, Kent Johnson <[EMAIL PROTECTED]> wrote: > > [note that this code will not produce strings like 'IV' for 4. OTOH, > > as I recall, the Romans didn't do that consistently either..] > It seems to me that isn't so different from deciding to use 'Q' for 250. > Maybe you can change the dict

Re: [Tutor] The whole Roman to Dec and vice versa issue

2007-03-11 Thread Kent Johnson
John Fouhy wrote: > On 12/03/07, Jaggo <[EMAIL PROTECTED]> wrote: >> Hey, >> I'm a rather new programmer, but it seems to me the digital to roman should >> be coded: >> While Digital_Input > 0: >> If Digital_Input > 1000 then: Roman = + M, Digital_Input = - 1000 >> elif Digital_Input > 900 then: Ro

Re: [Tutor] The whole Roman to Dec and vice versa issue

2007-03-11 Thread John Fouhy
On 12/03/07, Jaggo <[EMAIL PROTECTED]> wrote: > Hey, > I'm a rather new programmer, but it seems to me the digital to roman should > be coded: > While Digital_Input > 0: > If Digital_Input > 1000 then: Roman = + M, Digital_Input = - 1000 > elif Digital_Input > 900 then: Roman = + C, Digital_Input =

Re: [Tutor] The whole Roman to Dec and vice versa issue

2007-03-11 Thread Alan Gauld
"Jaggo" <[EMAIL PROTECTED]> wrote > [Come to that, if someone could point me to a *simple* gui which > I can use in python, keep in mind I did learn a little VB, > I should be grateful as well.] Tkinter is the standard Python GUI (IDLE is built using it). Many prefer wxPython, but it's an extr

Re: [Tutor] The whole Roman to Dec and vice versa issue

2007-03-11 Thread Jaggo
Hey, I'm a rather new programmer, but it seems to me the digital to roman should be coded: While Digital_Input > 0: If Digital_Input > 1000 then: Roman = + M, Digital_Input = - 1000 elif Digital_Input > 900 then: Roman = + C, Digital_Input = - 900 ... Now if someone could please clarify [or forwar