-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
  • 28,527
  • 5
  • 52
  • 95
bluePhlavio
  • 387
  • 4
  • 17

1 Answers1

0

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