What does r before string in python mean?



What does r before string in python mean?..

Answer / Vivek Prasad

In Python, an 'r' before a string indicates that the string is raw and backslashes are treated as literal characters. This can be useful when working with strings containing special characters or escape sequences.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

What is a constructor in python?

1 Answers  


How would you convert a string into lowercase in python?

1 Answers  


How will you locally save an image using its url address?

1 Answers  


Use of double quotes and single quote in python?

1 Answers  


What is super () in python?

1 Answers  


What is an interpreter for python?

1 Answers  


Is Python a good choice for web development

1 Answers  


What are tuples in python? How differ with lists?

1 Answers  


What is anaconda python used for?

1 Answers  


Is python object oriented?

1 Answers  


Is html harder than python?

1 Answers  


How to tic tac toe computer move?

1 Answers  


Categories