On 10/10/12 02:14, eryksun wrote:
another=input('Do you have another book to order for this student?', '\nEnter y for yes: ')Remove the comma, and this will parse correctly.
Oops, yes good catch, don't know where that came from.
another=input(''' Do you have another book to order for this student? Enter y for yes: ''')This retains the leading spaces. You can use textwrap.dedent() to remove them:
I intended the spaces but didn't know about textwrap let alone dedent(). You learn something new every day! :-) -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ _______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
