Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: =?UTF-8?Q?Nagy_L=c3=a1szl=c3=b3_Zsolt?= Newsgroups: comp.lang.python Subject: Re: Is there an meaning of '[[]]' in a list? Date: Thu, 19 Nov 2015 12:36:46 +0100 Lines: 10 Message-ID: References: <750e1071-395b-4e9b-ad64-05faa174a5bf@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de vYD64+U3Bhxtz+RMIpHdgAB/pLC7flItkM/6i0N2JJ0A== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.020 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'elements.': 0.05; 'memory.': 0.05; 'assignment': 0.07; '[[]]': 0.16; 'element.': 0.16; 'list.)': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'element': 0.18; 'header:In-Reply-To:1': 0.24; 'subject:list': 0.26; 'question:': 0.29; 'list': 0.34; 'there': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'list.': 0.37; 'difference': 0.38; 'enough': 0.39; 'to:addr:python.org': 0.40; 'charset:windows-1252': 0.62; '(that': 0.63; 'between': 0.65; 'subject:there': 0.66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopzeus.com; s=shopzeus_com; t=1447933007; bh=0DNWLFTkTyS62F4sKTWzpqTON8EYMXH5lvMGnyFYhpM=; h=Subject:To:References:From:Date:In-Reply-To:From; b=Tdiz8jEBE9BPOgYfkIGJCzz1+fgxTaP8IrtTQOrT72QjUgSTj6gK3T66duJuGYRVh CAl4dDA3y1Ul5FHmUccn3FQDdArbvC0hmba47yBN6Ihb03RzJZfiWYkIEDCjtmzb0e i2lECeKmY5/K/RLCWP0p8Ie2XfbsCGE9j5xJQUqE+NVmw2D3szdKzts7Gso4pq80Rw 2btnV+XYpYVTwge1T3ABlUPd3gjq7p4XB4jqVlHvBgEHjG23HBv4Fvnxwqq5wPdFmL P7bF7T+UQEOcezT/4Ng2QdAajtSLkfDKZAlQZzuLooTwSXkm0tD6GqT4nusylAGhKk xORQykfVYLB3A== 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:99043 > I have question: Is there any difference between [[]] and []? Yes. [] - a list with zero elements. That is an empty list. [[]] - A list with one element. (That element is an empty list.) > [[]] can have deeper assignment and use than You can have it as deep as you want, if you have enough memory.