Tips and tricks from my Telegram-channel @pythonetc, June 2019

It is a new selection of tips and tricks about Python and programming from my Telegram-channel @pythonetc.
← Previous publications

The
\
symbol in regular string have special meaning. \t
is tab character, \r
is carriage return and so on.You can use raw-strings to disable this behaviour.
r'\t'
is just backslash and t
.You obviously can’t use
'
inside r'...'
. However, it still can be escaped by \
, but \
is preserved in the string: