using floats/ints in print and write

Rajarshi Guha rajarshi at seed.chem.psu.edu
Mon Aug 20 14:49:53 EDT 2001


Hi,
  does'nt python 2.2 allow me to use float/int variables in a string 
context. That is I can't write:

print a + 'hello'

where a is float or int. Right now I'm using fpformat.fix() to get a string 
value. Is there any other way?

TIA
-- 
--
Rajarshi Guha



More information about the Python-list mailing list