Hi
This is my first ever python assignment and I am sort of stuck...:'(
I need to fit a text inside this box (textwrap). I think I figured out the code for the insert, but I also have to make the box with two whitespaces on each side of the inserted text.
Any ideas ?? I just need a push in the right direction.
import textwrap
def format_postcard(story, width, depth):
wrap_story = textwrap.wrap(story, width)
if story >= 25:
print wrap_story
else:
print 'sorry, the synopsis is too long.'
+---------------+
| cccccccccccc |
| cccccccccccc |
| cccccccccccc |
| cccccccccccc | |
+---------------+
Thank you
Isa