Special Characters

How are we going to print special characters like new line and tabs etc. in Python?

Strings can contain special characters, like tabs or new lines. We need to be aware of those as they can sometimes crop up and cause problems. For example, the new line character is defined as “n”, while the tab character is defined as “t”. Let’s see a couple of examples so you will better understand what these do:

Get hands-on with 1200+ tech skills courses.