ahlam
0
Q:

raw string python

#A raw string considers backslash as literal instead of an escape character
print(r"C\Users\MyName\Desktop")
#Without the r in front you will have to escape the \ with another \
print("C\\Users\\MyName\\Desktop")
#Both will print the same thing "C\Users\MyName\Desktop"
4

>>> s = r'Hi\xHello'
>>> print(s)
Hi\xHello
1

New to Communities?

Join the community