How to convert \n and \t symbols to new lines and tabs?

D

DSblizzard

How to convert string with \n and \t symbols to natural string - with
new lines and tabs?
 
M

MRAB

DSblizzard said:
How to convert string with \n and \t symbols to natural string - with
new lines and tabs?
You'll need to explain what you mean.

A string literal represents newline and tab with \n and \t. Are you
talking about that, or does the string actually contain the characters
\n and \n? What do you see what you print it? What do you see when you
use repr and print the result?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top