how to keep special characters in python string code example
Example: python print show special characters
a = "Hello\tWorld\nHello World"
print(repr(a))
# 'Hello\tWorld\nHello World'
a = "Hello\tWorld\nHello World"
print(repr(a))
# 'Hello\tWorld\nHello World'