May-29-2018, 06:51 AM
In Python '\\' is a way to represent a single '\'. Since the backslash is an escape character to get a single '\' you have to escape it.
>>> print('\\') \ >>> s = '\nGSG' >>> print(s) GSG >>> s = '\\nGSG' >>> print(s) \nGSG