Re: [Tutor] Digital-to- Roman (pseudocode)

2007-03-08 Thread Alan Gilfoy
Quoting Bob Gailer <[EMAIL PROTECTED]>: >> >> Digital to Roman pseudocode: >> >> 1. if digital_input is greater than 1000: >> subtract 1000 from it and add "M" to string roman_result >> # How do you do that, add one character to the end of an existing string? >> > Start with an empty string: > > r

Re: [Tutor] Digital-to- Roman (pseudocode)

2007-03-08 Thread Bob Gailer
Alan Gilfoy wrote: > Quoting Bob Gailer <[EMAIL PROTECTED]>: > > >> Make sure each step >> is one simple operation. Walk thru the steps to verify that you have >> them correct. >> > > Bob, your email did inspire me on how I would express the process in > computer-processing terms. > > Her

Re: [Tutor] Digital-to- Roman (pseudocode)

2007-03-08 Thread Mike Hansen
I think Dive Into Python has examples of digital to Roman and it might have Roman to digital. Might be worth looking at after you've come up with a solution. Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Digital-to- Roman (pseudocode)

2007-03-08 Thread Alan Gilfoy
Quoting Bob Gailer <[EMAIL PROTECTED]>: > Make sure each step > is one simple operation. Walk thru the steps to verify that you have > them correct. Bob, your email did inspire me on how I would express the process in computer-processing terms. Here's how I'd break down the steps, using "pseud