Python Escape Characters

In this blog I will share some Python escape characters.

Let’s begin with “Backslash”. Blackslash inserts a single black slash. I will show you now how the output comes out.

“Single Quote” adds a single quote within a string.

“Tab” adds spaces of 8 characters.

“New Line” takes the cursor to the first position of a new line.

“Carriage Return” takes the cursor to the first position of the same line.

Thanks for reading.

Saket Kumar, Signing off!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store