asked 92.8k views
5 votes
Use a raw string literal to assign "C:\file.doc" to my_str (without quotes).

asked
User Saren
by
7.8k points

1 Answer

3 votes

Answer:

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

answered
User AlexTa
by
8.1k points