print format

Curtis Jensen cjensen at bioeng.ucsd.edu
Tue Jul 25 20:47:44 EDT 2000


I don't know if this is possible in python but, Is there a way to repeat
a format command a spceified number of times?  For example, in Fortran
there is the format code "20I5"  Which is the same as "I5" twenty
times.  I want something like:
print '20(%i5) ' % [list of 20 intgers]

Also, how do I print without a new line other than using
sys.stdout.write?
Thanks

-- 
Curtis Jensen
cjensen at bioeng.ucsd.edu
http://www-bioeng.ucsd.edu/~cjensen/
FAX (425) 740-1451



More information about the Python-list mailing list