1# a Rstring is a string that treat backslashs as normals caracters
2#Exemple:
3#normal string
4>>> print("This is a line feed : \n and it's usefull!")
5This is a line feed :
6and it's usefull!
7# R-string
8>>> print(r"This is not a line feed /n :(")
9This is not a line feed /n :(
10
11# It's mostly used to write Paths
12# Exemple
13my_path = "C:\Users\Me\Desktop\MyFile.txt" #Don't works a all but
14my_path = r"C:\Users\Me\Desktop\MyFile.txt" #Totaly work!
1# a normal string which treats a back slash as a special character and changes some properties of it
2("D:\Users\legendary\Pictures\Saved Pictures\bugatti.jpg")
3
4#we use r string to write paths without any conflit since they contain backshlases
5
6# >>> this is an r string
7(r"D:\Users\legendary\Pictures\Saved Pictures\bugatti.jpg")