Re: Noob question: Is all this typecasting normal?

2009-01-04 Thread sprad
On Jan 3, 6:41 pm, Steven D'Aprano wrote: > The OP comes from a Perl background, which AFAIK allows you to concat > numbers to strings and add strings to numbers. That's probably the (mis) > feature he was hoping Python had. That's correct -- and that's been one of the more difficult parts of my

Noob question: Is all this typecasting normal?

2009-01-02 Thread sprad
I've done a good bit of Perl, but I'm new to Python. I find myself doing a lot of typecasting (or whatever this thing I'm about to show you is called), and I'm wondering if it's normal, or if I'm missing an important idiom. For example: bet = raw_input("Enter your bet") if int(bet) == 0: # r

Re: Python in High School

2008-04-01 Thread sprad
On Apr 1, 11:41 am, mdomans <[EMAIL PROTECTED]> wrote: > Python needs no evangelizing but I can tell you that it is a powerfull > tool. I prefer to think that flash is rather visualization tool than > programing language, and java needs a lot of typing and a lot of > reading. On the other hand pyth

Python in High School

2008-04-01 Thread sprad
I'm a high school computer teacher, and I'm starting a series of programming courses next year (disguised as "game development" classes to capture more interest). The first year will be a gentle introduction to programming, leading to two more years of advanced topics. I was initially thinking abo