Forum Discussion

chetanhiwale's avatar
chetanhiwale
Resolver I
1 year ago
Solved

Fabric notebook backslash issue

This should print \\n as output. Is this happening due to pylantic or fabric is doing something internally. 
  • nilendraFabric's avatar
    1 year ago

    When you write a literal like `"\\",` Python processes it as an escape sequence. In this context, a pair of backslashes (`"\\") tells Python to include a single literal backslash in the string.