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

[Tutor] Printing RAW string

2011-06-10 Thread Kaustubh Pratap chand
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 input! Any help appreciated :D __