Get the latest tech news
Python string literals are kinda funny
pop quiz: which of these lines is valid python, and what's the content of the resulting string? r'asdf\' r'asdf\'' answer the first line is a syntax error; the second line is valid. the content of the resulting string is asdf\' the 'r' prefix makes it a raw string literal, so backslash escapes aren't interpreted in any special way.
None
Or read this on Hacker News