Forum Discussion
chetanhiwale
1 year agoResolver I
Fabric notebook backslash issue
This should print \\n as output. Is this happening due to pylantic or fabric is doing something internally.
- 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.
v-nmadadi-msft
1 year agoCommunity Support
Hi chetanhiwale ,
Thanks for reaching out to the Microsoft fabric community forum.
This is not an issue with Fabric, as this is an expected python output. Any python interpreter will return the same output.
As nilendraFabric suggested the code is using an escape character. To insert characters that are illegal in a string, escape characters are used.
If you find this post helpful, please mark it as an "Accept as Solution" and consider giving a KUDOS.
Thanks and Regards