Wow, this should be so simple, but it\' just not working. I need to inset a \"\\\" into a string (for a Bash command), but escaping just doesn\'t work.
>>&
The second example is correct. There are two slashes because you are printing the Python representation of the string.
If you want to see the actual string, call print a.
print a