Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #30937

Re: Question on Python Split

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'subject:Question': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'terry': 0.09; 'tuple': 0.09; "skip:' 30": 0.15; 'numbered': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'wrote:': 0.17; 'jan': 0.18; '>>>': 0.18; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.28; '>>>>': 0.29; 'strings,': 0.29; 'print': 0.32; 'point,': 0.33; 'to:addr :python-list': 0.33; 'project': 0.34; 'pm,': 0.35; 'received:org': 0.36; 'bad': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'free': 0.61; 'email addr:gmail.com': 0.63; 'ebooks': 0.84; 'kindle': 0.84; 'received:fios.verizon.net': 0.84; 'ipad': 0.95
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: Question on Python Split
Date Sun, 07 Oct 2012 16:08:47 -0400
References <68fc8fcb-b356-4fce-8541-e2abf371fecf@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host pool-173-75-251-66.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120824 Thunderbird/15.0
In-Reply-To <68fc8fcb-b356-4fce-8541-e2abf371fecf@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1936.1349640557.27098.python-list@python.org> (permalink)
Lines 28
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1349640557 news.xs4all.nl 6857 [2001:888:2000:d::a6]:49124
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:30937

Show key headers only | View raw


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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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