Simple string formatting question
bozon at natur.cuni.cz
Tue Mar 14 17:06:45 CET 2000
On Tue, 14 Mar 2000, Matthew Hirsch wrote:
> Hi All,
> I'm trying to print this:
> print '%5.3f %5.3f %5.3f 1i'%
> + 1)
> but it won't fit on one line. It keeps thinking that I have two
> separate incomplete statements. What is the correct way to get around
> this problem? Thanks for your help.
Try to let the beginning bracket after percent sign at the end of first
line. Maybe it helps.
More information about the Python-list