I'm using python3.7 and typed the following code in python shell:
>>> s0 = r'\c'
>>> s0
'\\c'
>>> print(s0)
\c
>>> s1 = '\c'
>>> s1
'\\c'
>>> print(s1)
\c
>>> s2 = '\\c'
>>> s2
'\\c'
>>> print(s2)
\c
My questions:
Why does python automatically add
\
tos1
instead of raising error? Can anyone provide link of this feature (auto\
adding) in python docs?Do
s0
,s1
ands2
store the same data internally?