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

User Saren
by
7.2k 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

User AlexTa
by
7.7k points