Sitemap
Saket Kumar's Blog

Saket Kumar's Blog

I’m Saket Kumar, believe in learning by doing, and am currently involved in exploring some independent projects around photography, blogging, and storytelling.

Python Escape Characters

In this blog I will share some Python escape characters.

Press enter or click to view image in full size

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.

Get Saket Kumar's Blog’s stories in your inbox

Join Medium for free to get updates from this writer.

Saket Kumar, Signing off!

--

--

Saket Kumar's Blog
Saket Kumar's Blog

Written by Saket Kumar's Blog

I’m Saket Kumar, believe in learning by doing, and am currently involved in exploring some independent projects around photography, blogging, and storytelling.