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
@ 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
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
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