-2

Let's say I have a raw string like r'\n' that corresponds to '\\n'. Is there a way to interpret the raw string as the "normal" string '\n' with the line break meaning?

Bharath M Shetty
  • 30,075
  • 6
  • 57
  • 108
bluePhlavio
  • 537
  • 5
  • 18

1 Answers1

0

You can get a newline by r'\n'.replace("\\n", "\n")