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


Groups > comp.lang.python > #99070

Re: Is there an meaning of '[[]]' in a list?

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Mark Lawrence <breamoreboy@yahoo.co.uk>
Newsgroups comp.lang.python
Subject Re: Is there an meaning of '[[]]' in a list?
Date Thu, 19 Nov 2015 16:26:01 +0000
Lines 42
Message-ID <mailman.468.1447950397.16136.python-list@python.org> (permalink)
References <750e1071-395b-4e9b-ad64-05faa174a5bf@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de QSzzEjvwYrqUZIMVFctw5QDxWZqJ9kjGpfe+CYssming==
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.013
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.05; 'assignment': 0.07; 'generous': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'question.': 0.13; '[[]]': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'language': 0.19; 'lawrence': 0.22; 'trying': 0.22; 'this:': 0.23; 'thanks,': 0.24; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'subject:list': 0.26; 'header:X -Complaints-To:1': 0.26; 'question:': 0.29; 'wasting': 0.29; 'language.': 0.32; 'changed': 0.33; 'point,': 0.33; 'previous': 0.34; 'list': 0.34; 'list:': 0.35; 'there': 0.36; 'to:addr:python- list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'things': 0.38; 'doing': 0.38; 'difference': 0.38; 'anything': 0.38; 'hi,': 0.38; 'to:addr:python.org': 0.40; 'mark': 0.40; 'chance': 0.60; 'your': 0.60; 'research': 0.62; 'charset:windows-1252': 0.62; 'times': 0.63; 'our': 0.64; 'between': 0.65; 'subject:there': 0.66; 'here': 0.66; 'pythonistas,': 0.84; 'yourself?': 0.84
X-Injected-Via-Gmane http://gmane.org/
X-Gmane-NNTP-Posting-Host 195.147.230.164
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0
In-Reply-To <750e1071-395b-4e9b-ad64-05faa174a5bf@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:99070

Show key headers only | View raw


On 19/11/2015 11:28, fl wrote:
> Hi,
> In the previous exercises, I see list:
> cc=[[],[],[]]
>
> Then, I can have this:
>
> ccc=[[[]],[[]],[[]]]
>
> I can also have
>
> ccc[0]
> Out[158]: [[]]
>
> ccc[0]='o'
>
> ccc
> Out[163]: ['o', [[]], [[]]]
>
>
> I have question: Is there any difference between [[]] and []?
> [[]] can have deeper assignment and use than
>
> ccc[0]='o'
>
>
> Thanks,
>

I have question.  Is there any chance that you stop wasting the time of 
people on this list by either doing your own research or trying things 
at an interactive prompt?  Or are you now well past that point, as 
you're learned that the extremely generous people here have fitted your 
bibs, spoon fed you and and changed your nappies so many times that it 
has rendered you incapable of doing anything for yourself?

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Is there an meaning of '[[]]' in a list? fl <rxjwg98@gmail.com> - 2015-11-19 03:28 -0800
  Re: Is there an meaning of '[[]]' in a list? Nagy László Zsolt <gandalf@shopzeus.com> - 2015-11-19 12:36 +0100
  Re: Is there an meaning of '[[]]' in a list? Peter Otten <__peter__@web.de> - 2015-11-19 12:40 +0100
    Re: Is there an meaning of '[[]]' in a list? Quivis <quivis@domain.invalid> - 2015-11-22 23:25 +0000
      Re: Is there an meaning of '[[]]' in a list? Joel Goldstick <joel.goldstick@gmail.com> - 2015-11-22 19:08 -0500
      Re: Is there an meaning of '[[]]' in a list? Peter Otten <__peter__@web.de> - 2015-11-23 09:57 +0100
      Re: Is there an meaning of '[[]]' in a list? Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2015-11-25 12:04 +0100
  Re: Is there an meaning of '[[]]' in a list? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-11-19 16:26 +0000

csiph-web