Use a raw string literal to assign "C:\file.doc" to my_str (without quotes).

Answer :

Answer:

r'C:\file doc' Raw string ignore escape sequence, so quotes don't need to be escape and both