0
Escape Characters (Writing /n as Output)
So I was trying to get an output where I write: /n is an escape character, but then when I typed that in the code, the ouput would just give me a newline, how do I get an output of /n as a string output, I’m not trying to make a new line, I’m trying to type /n out... Thanks, sorry if it’s a little confusing.
4 Antworten
+ 6
https://knowledge.kitchen/Raw_strings_in_Python
+ 5
you need to escape the character like so... ( "\\n"); this goes the same for quotation marks( "\"hey\"");
+ 5
use raw string
0
what's a raw string?