python string with backslash code example
Example 1: python backslash in string
# This will output one backslash
print("\\")
# OUTPUT:
\
Example 2: python print single backslash
print('\\')
# This will output one backslash
print("\\")
# OUTPUT:
\
print('\\')