In Python, you can define a literal string as a raw string. Surfing on internet, I read that it is equivalent to repr()
. More exactly, I tested that:
r"mystring" == repr("mystring")[1:-1]
Is this always true?
In Python, you can define a literal string as a raw string. Surfing on internet, I read that it is equivalent to repr()
. More exactly, I tested that:
r"mystring" == repr("mystring")[1:-1]
Is this always true?