Combine a list of strings

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • brusk2
    New Member
    • Nov 2011
    • 1

    Combine a list of strings

    how can I tranformed ['1','2','3','4'] to '1234' at python
    Last edited by bvdet; Nov 10 '11, 03:45 PM. Reason: Edit thread title
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    String method join().
    Code:
    >>> "".join(['1','2','3','4'])
    '1234'
    >>>

    Comment

    Working...