Python - Data Type Raw string

Introduction

Python also supports a raw string literal that turns off the backslash escape mechanism.

Such literals start with the letter r and are useful for strings like directory paths on Windows (e.g., r'C:\text\new').

Demo

S = r'C:\text\new'
print(S)

Result

Related Topic