Skip to main content
The National Cipher Challenge

Reply To: 9B

#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.

Report a problem