0
a = "She shouted,\"Hii"
b = "How are you?\""
print (a, b)

Also, what does the "" do?

U13-Forward
  • 69,221
  • 14
  • 89
  • 114
advance
  • 11
  • Your question is about backslash \, not forward slash `/` so I edited the title. – buran Sep 26 '21 at 08:00
  • 1
    The back slash character, \, introduces an escape. In the examples, it precedes a `"`, which is how you can put a `"` character in a string. If it weren't escaped, it would end the string. – Tom Karzes Sep 26 '21 at 08:00
  • Use re.escape. Check out this link: https://docs.python.org/3.4/library/re.html#re.escape - notice that The '_' character is no longer escaped in version 3.3. – Danielle Sep 26 '21 at 08:04

0 Answers0