I need a neat way to print nothing or a number

John Gordon gordon at panix.com
Tue Mar 26 17:29:15 CET 2013


In <jms82a-6sl.ln1 at chris.zbmc.eu> cl at isbd.net writes:

> What's a neat way to print columns of numbers with blanks where a number
> is zero or None?

print number or '      '

-- 
John Gordon                   A is for Amy, who fell down the stairs
gordon at panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"




More information about the Python-list mailing list