Escape Sequences

Lab Python Beginner 10 points

With a single print() call, print the following three lines (the second line starts with a tab character):

Name:
	Ada
She said "hi"

Input

None.

Output

The three lines above.

Example

Output

Name:
	Ada
She said "hi"
Sample output available
Editor
Python

Hints

\n is a new line and \t is a tab inside a string.

Use \" to put a double quote inside a double-quoted string.

Solution explanation

Backslash escape sequences put special characters inside strings: \n new line, \t tab, \" a quote.

Show solution
print("Name:\n\tAda\nShe said \"hi\"")
Output
Answer
HOME LEARN COMMUNITY DASHBOARD