Triple Quotes

Lab Python Beginner 10 points

Print this small ASCII box using a triple-quoted string:

+---+
| P |
+---+

Input

None.

Output

The three lines of the box.

Example

Output

+---+
| P |
+---+
Sample output available
Editor
Python

Hints

Triple quotes (""" ... """) let a string span several lines.

Solution explanation

A triple-quoted string keeps its line breaks exactly as typed.

Show solution
box = """+---+
| P |
+---+"""
print(box)
Output
Answer
HOME LEARN COMMUNITY DASHBOARD