How can I get a string with a single backslash in it?

Posted on

Problem :

When I write print('') or print("") or print(""''""), Python doesn’t print the backslash symbol. Instead it errors for the first two and prints '' for the third. What should I do to print a backslash?

Solution :

Leave a Reply

Your email address will not be published. Required fields are marked *