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 input! Any help appreciated :D
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor