# Escape Character

say it: **“es-KAYP KAIR-ik-ter”** **/ɪˈskeɪp ˈkɛrɪktər/**

A backslash that gives the next character a special meaning, like \\n for a new line.

## What is an **escape character**?

An **escape character** is a backslash `\` that gives the next character a special meaning, like `\n` for a new line or `\"` for a quote inside a string.

```python
print("Line one\nLine two")
print("She said \"hi\"")  # She said "hi"
```

Level: Novice · [More Python terms at this level](https://www.ask-codey.com/glossary?category=python&level=1)

Updated: November 17, 2026

Source: https://www.ask-codey.com/glossary/escape-character
