Scott wrote: > sentence = raw_input('Sentence: ') > > screen_width = 80 > text_width = len(sentence) > box_width = text_width + 6 > left_margin = (screen_width - box_width) // 2 > > print > print ' ' * left_margin + '+' + '-' * (box_width-2) + '+' > print ' ' * left_margin + '| ' + ' ' * text_width + ' |' > print ' ' * left_margin + '| ' + ' ' sentence + ' |' > print ' ' * left_margin + '| ' + ' ' * text_width + ' |' > print ' ' * left_margin + '+' + '-' * (box_width-2) + ' |' > print
> Now that, even though copied straight from "Beginning Python: From Novice > to Professional", returns : > There's an error in your program: invalid syntax The source code available at http://hetland.org/writing/beginning-python/ does work. Peter -- http://mail.python.org/mailman/listinfo/python-list