Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #30937
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Subject | Re: Question on Python Split |
| Date | 2012-10-07 16:08 -0400 |
| References | <68fc8fcb-b356-4fce-8541-e2abf371fecf@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1936.1349640557.27098.python-list@python.org> (permalink) |
On 10/7/2012 3:30 PM, subhabangalore@gmail.com wrote:
> If I work again from tuple point, I get it as,
>>>> tup1=('Project Gutenberg')
>>>> tup2=('has 36000')
>>>> tup3=('free ebooks')
>>>> tup4=('for Kindle')
>>>> tup5=('Android iPad')
These are strings, not tuples. Numbered names like this are a bad idea.
>>>> tup6=tup1+tup2+tup3+tup4+tup5
>>>> print tup6
> Project Gutenberghas 36000free ebooksfor KindleAndroid iPad
tup1=('Project Gutenberg')
tup2=('has 36000')
tup3=('free ebooks')
tup4=('for Kindle')
tup5=('Android iPad')
print(' '.join((tup1,tup2,tup3,tup4,tup5)))
>>>
Project Gutenberg has 36000 free ebooks for Kindle Android iPad
--
Terry Jan Reedy
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Question on Python Split subhabangalore@gmail.com - 2012-10-07 12:30 -0700 Re: Question on Python Split MRAB <python@mrabarnett.plus.com> - 2012-10-07 21:01 +0100 Re: Question on Python Split Terry Reedy <tjreedy@udel.edu> - 2012-10-07 16:08 -0400 Re: Question on Python Split Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-10-07 20:34 -0400 Re: Question on Python Split subhabangalore@gmail.com - 2012-10-08 07:45 -0700
csiph-web