Re: [Tutor] which version do i have and how do i change it

2011-08-16 Thread Jeremy G Clark
Yes, that's what I was trying to say. Thanks for translating! :) -Original Message- From: Prasad, Ramit [mailto:ramit.pra...@jpmorgan.com] Sent: Tuesday, August 16, 2011 11:24 AM To: Jeremy G Clark; tutor@python.org Subject: RE: [Tutor] which version do i have and how do i chan

Re: [Tutor] which version do i have and how do i change it

2011-08-16 Thread Jeremy G Clark
@ Connor -- you probably should heed the advice of Alan and leave your existing Python 2.x install alone. For the exercises in your book, you should be able to include this line at the top of every script and it'll work just fine. I can't remember, you may need to chmod +x in order for this to

Re: [Tutor] Printing RAW string

2011-06-10 Thread Jeremy G Clark
print(repr(s)) _ How i can print the string in raw...as it is s="hello world\n" print s Output: helloworld But i want it to be "hello world\n" I know it can be done by adding a 'r' prefix but is there any other way because the string will be taken in during in

Re: [Tutor] if statement

2011-06-10 Thread Jeremy G Clark
Sorry, jumping in on this thread a couple days late... Steven's suggestion is how I figured out a similar problem recently. If you're executing the code through a windows command line, you might be getting the carriage-return character returned to the program (this behavior doesn't happen in I