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