#Use the syntax r"\" to treat backslash (\) as a literal character, and  #not as an escape character.  raw_text = r"abc\123"  print(raw_text) OUTPUT abc\123

Read more of this post