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

Members online

No members online now.

Forum statistics

Threads
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top