On Mon, Oct 1, 2012 at 4:23 PM, eryksun <eryk...@gmail.com> wrote:
>
> Finally:
>
>
>         print(s1)
>
>
> If s1 is an iterable sequence, you can print the string using either
> "print(''.join(s1))" or "print(*s1, sep='')". Also, at this point
> should s1 be emptied?

Sorry, that last statement was wrong. I was thinking you were
progressively printing the contents of each tag. But that would need
to happen when you pop() the stack. What you need to do here is
"return True", else your function implicitly returns "None".
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to