Triple Quotes
Completed
Print this small ASCII box using a triple-quoted string:
+---+ | P | +---+
Input
None.
Output
The three lines of the box.
Example
Output
+---+ | P | +---+
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)