how to join array of integers?
js
ebgssth at gmail.com
Sat Sep 15 08:51:20 EDT 2007
More information about the Python-list mailing list
Sat Sep 15 08:51:20 EDT 2007
- Previous message (by thread): how to join array of integers?
- Next message (by thread): how to join array of integers?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
print ''.join([str(i) for i in [1,2,3]]) On 9/15/07, Summercool <Summercoolness at gmail.com> wrote: > i think in Ruby, if you have an array (or list) of integers > > foo = [1, 2, 3] > > you can use foo.join(",") to join them into a string "1,2,3" > > in Python... is the method to use ",".join() ? but then it must take > a list of strings... not integers... > > any fast method? > > -- > http://mail.python.org/mailman/listinfo/python-list >
- Previous message (by thread): how to join array of integers?
- Next message (by thread): how to join array of integers?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list