print fmstr % str <= possible??

Carel Fellinger cfelling at iae.nl
Mon Jan 21 23:00:06 EST 2002


Ozone Hole near South Pole <ozonehole2k at yahoo.com> wrote:

> myprint("The x pos is %2.3", x) 

Append the string formatting code "f" to the format string and it will work.
-- 
groetjes, carel



More information about the Python-list mailing list