Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
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 Respostas
+ 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?