Header Ads

Responsive Ads Here

Escape Sequences in Python

 Escape Sequences in Python


text = 'Hey, What\'s up?'
print(text)

# \' => '
# \" => "

path = "D:\background"
print(path)

# \n => new line
# \t => tab
# \\ => \
#\\\\ => \\

 

Powered by Blogger.