Reply To: 9B
The mystery of the silver bullet › Forums › The Intelligence Room › 9B › Reply To: 9B
17th December 2024 at 12:29 am
#99076
cribbage
Participant
For those having trouble with the back slashes in 9B when using Python, try raw strings. A raw string is a string preceded by the letter r
:
x = "1\t23"
print(x) # Prints 1 23
y = r"1\t23"
print(y) # Prints 1\t23
Python ignores escape sequences, such as \n
or \t
, in raw strings, treating them as normal characters or text.