[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [school-discuss] oh no, not serpentarium

--- Michael Shigorin <mike@xxxxxxxxxxx> wrote:
> home:~> python
> Python 2.5.1 (r251:54863, Feb  8 2008, 15:19:12)
> [GCC 4.1.1 20070105 (ALT Linux, build 4.1.1-alt12)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> "Hello World"
> 'Hello World'
> >>>
> See the quotes change... bet it's a consequence of yet another kluge.

Bet it's not!
Python has a standard output mechanism. It allows "Hello World" or 'Hello
World' as input and will generate output which is suitable for input. Python
"I'm hungry" so you don't have to escape single quotes. It allows 
'I said "Hi"', so you don't have to escape double quotes and it allows 
'''I said "Hi, I'm hungry"''' so you can have both (allows newlines BTW).
> Python is a bit less boring stuff than Java, still I'm yet to 
> see a seasoned developer who would recommend python as a first
> programming language.

I did. I guess you missed that.


      Get the name you always wanted with the new y7mail email address.