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

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

User AlexTa
by
8.1k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.