It is quite simple to print a back slash in python If you want one backslash put two backslashes and if you want 2 put 4 backslashes.
print("This is how you print 1 backslash \\") print("This is how you print 2 backslashes \\\\")