What does r
prefix followed by three single (or double) quotes, namely r''' '''
, mean in Python? And when to use it? Could you explain further the following examples?
foo = r'''foo'''
punctuation = r'''['“".?!,:;]'''
Related SO posts:
- The difference between three single quote'd and three double quote'd docstrings in python
- r prefix in Python regex
This question is not a duplicate. A direct and concise answer should be there in SO knowledge-base to make the community better.