[Tutor] String Replacement question

Faheem faheem at atlantiscomputing.com
Wed May 21 11:35:21 CEST 2008


Hi all,
 How do I replace the same value multiple times without repeating the
same variable name/value repeatedly?
for ex.  

 some = 'thing' 
 print '%s %s %s %s' % (some,some,some,some)

in this case, my question is how do i replace "% (some,some,some)" with
something more concise?

thanks in advance,
Faheem


More information about the Tutor mailing list