In Python 3 I am trying to make a set containing a backslash as an element:
a = {"/", "\"}
But I noticed that as soon as I closed the bracket after "\"
, the bracket became blue. I, learned that \
is an "escape" character used in things like \r
, \t
etc. But I want to take a backslash as a single piece of string. How to prevent this problem?