Oct-11-2021, 01:21 AM
i want to print literally the string "\n", not the expression \n
how would i do that?
how would i do that?
|
printing an string instead of a expression
|
|
Oct-11-2021, 01:21 AM
i want to print literally the string "\n", not the expression \n
how would i do that?
Oct-11-2021, 03:09 AM
print('\\n')
I welcome all feedback.
The only dumb question, is one that doesn't get asked. My Github How to post code using bbtags Download my project scripts
Oct-11-2021, 03:10 PM
Or you can use a raw string.
print(r'I want to see a \n and not have it be a line feed')A problem with the raw string is it disables all escape sequences in the string. |
|
|