What does an r represent before a string in python

0 votes

I want to understand why do we use a r before a path name in python such as

dirname = r'C:\temp\parts'
May 9, 2022 in Python by Edureka
• 13,620 points

edited Mar 4 97 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP