Moishy Gluck wrote:
>>> "%s " %st*3
'String String String '
^
If you look closely at the end of the string there is an extra space.
>>> " ".join((st, )*3)
'String String String'
^
No extra space.
Ah...Okay!
On Wed, May 21, 2008 at 9:42 AM, Kinuthia Muchane <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
st = "String"
print "%s " %st*3
String String String
Does this help?
Kinuthia...
_______________________________________________
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor