Author Archives: Kiprono Koech

Unexpected Character After Line Continuation Character SyntaxError

When writing Python code, backslash (“\”) can be used in two instances – as a line continuation character on the code or as an escape character when printing output on stdout, or when writing text into a file. In the first case, the backslash is used to break a long line of Python string, dictionary, set, and lists (maybe there’s more). For example,

Continue reading