Re: [Tutor] new to programming and wondering about an IDE for Python on Linux

2012-02-27 Thread Robert Sjoblom
>> I'd appreciate any feedback on this and good tutorials or books on >> Python 3 and the IDEs suggested. There are many available and I'm >> wondering what you as users find effective. I fiddled a bit with the Eric Python IDE; Eric5 for Python3 and Eric4 for Python2; overall I'd say that Eclipse

Re: [Tutor] roman to arabic

2012-02-27 Thread Albert-Jan Roskam
Ah, nice! Thank you! Sseeing the formal rules makes it easier: http://www.diveintopython.net/unit_testing/stage_5.html A regex is used to test whether the roman numeral is valid. Very elegant!   Regards, Albert-Jan ~~ All right

Re: [Tutor] new to programming and wondering about an IDE for Python on Linux

2012-02-27 Thread Alan Gauld
On 27/02/12 15:22, John Jensen wrote: I'm new to programming and wondering about an IDE for Python on Linux. Linux is an IDE :-) But, smiley's aside it's true. You can use basic tools like vim, emacs and terminal windows etc. To cut n paste between them is trivial (Much more so than in Window

Re: [Tutor] roman to arabic

2012-02-27 Thread Evert Rol
> I wrote a little program that does the conversion (I won't post it because it > would be a spoiler for the OP). The one thing I don't know, though, is how to > formalise > that it is not allowed to write something like X, but instead just > II. Or not DM but simply D. The rule is to wr

Re: [Tutor] roman to arabic

2012-02-27 Thread Alan Gauld
On 27/02/12 16:28, Albert-Jan Roskam wrote: possible way. Am I wrong or is it really not trivial at all to write an error class for such lengthy roman numerals? Its non trivial, you need something like a state machine to detect valid transitions as you read each character. Alan G.

Re: [Tutor] roman to arabic

2012-02-27 Thread Albert-Jan Roskam
Hi, I wrote a little program that does the conversion (I won't post it because it would be a spoiler for the OP). The one thing I don't know, though, is how to formalise that it is not allowed to write something like X, but instead just II. Or not DM but simply D. The rule is to write i

Re: [Tutor] roman to arabic

2012-02-27 Thread Alan Gauld
On 27/02/12 14:41, Cranky Frankie wrote: < That's one option. The OP also had the option of using a lookup table(dictionary) or just using elifs instead of nested ifs. Often a different algorithm helps. Also functional programming (ie. not just procedural!) can reduce the numbers of indenta

[Tutor] new to programming and wondering about an IDE for Python on Linux

2012-02-27 Thread John Jensen
Hi All, I'm new to programming and wondering about an IDE for Python on Linux. I'd appreciate any feedback on this and good tutorials or books on Python 3 and the IDEs suggested. There are many available and I'm wondering what you as users find effective. Thanks, John_

[Tutor] roman to arabic

2012-02-27 Thread Cranky Frankie
Walter Prins wrote: <> I've always wondered about this quote. I'm thinking it means you might want to have functions or subroutines, depending on the language, to do big chunks of logic, so the main control flow is clean and easy to read, like "structured programming" in COBOL. Still, every lang

Re: [Tutor] What made Python differ from other Languages?

2012-02-27 Thread ashish makani
An excellent recent article on hn(hacker news) on why python is important http://blaag.haard.se/Why-Python-is-important-for-you/ (via http://news.ycombinator.com/item?id=3579847 ) cheers ashish On Tue, Feb 21, 2012 at 1:13 AM, Mark Lawrence wrote: > On 20/02/2012 16:43, Sunil Tech wrote: > >