Re: Fwd: string concatenate

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • D'Arcy J.M. Cain

    Re: Fwd: string concatenate

    On Wed, 1 Oct 2008 10:03:50 -0700 (PDT)
    sandric ionut <sandricionut@y ahoo.comwrote:
    Thank you:
     
    but I would like to have them not like:
    ['name1', 'name2', 'name3', 'name4', 'name5', 'name6', 'name7', 
    'name8', 'name9']
     
    but like
    name1 name2 name3 name4 name5 name6 name7 name8 name9
    Slight mod from my previous suggestion then.

    nameAll = ' '.join(["name%d" % x for x in range(1,10,1)])

    Have you gone through the tutorial yet?

    --
    D'Arcy J.M. Cain <darcy@druid.ne t | Democracy is three wolves
    http://www.druid.net/darcy/ | and a sheep voting on
    +1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.
Working...