[Tutor] Print List

Alan Gauld alan.gauld at btinternet.com
Thu Sep 13 12:54:31 CEST 2012


On 13/09/12 00:36, akleider at sonic.net wrote:
>
> To make it even more generic I would suggest replacing
> """   print(theHeader) """
> with
> """   if theHeader:
>            print(theHeader)
> """
> to avoid a blank line if you don't need/want a header line.

Good catch, yes, that would be better.


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list