On May 21, 2008, at 6:42 AM, Kinuthia Muchane wrote:
st = "String" print "%s " %st*3String String StringDoes this help?
Another approach is to use dictionaries for string
replacement.
>>> subst = {'some': 'thing'}
>>> print "%(some)s%(some)s%(some)s" % subst
thingthingthing
-jeff
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor
