Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #43673
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.018 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; 'subject:Python': 0.06; '*is*': 0.09; '[1,': 0.09; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'slice.': 0.16; 'subject:questions': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'wed,': 0.18; 'all,': 0.19; 'programming': 0.22; 'coding': 0.22; 'header :In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; '(usually': 0.31; '>>>>': 0.31; 'url:python': 0.33; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'something': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'url:org': 0.36; 'received:209': 0.37; 'to:addr:python-list': 0.38; 'that,': 0.38; 'does': 0.39; 'subject:': 0.39; 'to:addr:python.org': 0.39; 'either': 0.39; 'url:3': 0.61; 'first': 0.61; 'taking': 0.65; '2013': 0.98 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=CrcaC/TZeoSc6NfK6e9VEBNvc+6gmRoHMrP21ITCWUQ=; b=pEgp2vu+WwVr1rsv7NHeo+h/iokHu5HhioupEATRA43BHxF/vR8R43wShsaqIYei06 IAlIlGrNkwkajRiz38HN2hOXMgSDcaQG++IReCHX7f0cL6drU+flo4SFnjqdluZ84QE1 vabUUZi4kVT5MqvAxyd8e7aI2YzEwo70QK46r9FydhpwRZ2lv+x4l3135jTsW/xYfWqW HTDa5zJdeVO4Z0AAw5sLEiurbFHt/yE7y5Cebqe7K4Ysw3VvkDfjwRuQHmaDkwiFgmoz DewDKTYYFLFwWpAETCGN6CAMJNjJGQkoS7J5yFybKWcJW05L5rd8sKgyAckKwZMfz/E7 aNaA== |
| MIME-Version | 1.0 |
| X-Received | by 10.52.91.71 with SMTP id cc7mr1615660vdb.58.1366126203560; Tue, 16 Apr 2013 08:30:03 -0700 (PDT) |
| In-Reply-To | <a6562e3b-29af-4953-bc8b-49fa634d1be7@googlegroups.com> |
| References | <a6562e3b-29af-4953-bc8b-49fa634d1be7@googlegroups.com> |
| Date | Wed, 17 Apr 2013 01:30:03 +1000 |
| Subject | Re: Newbie questions on Python |
| From | Chris Angelico <rosuav@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| 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.666.1366126206.3114.python-list@python.org> (permalink) |
| Lines | 23 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1366126206 news.xs4all.nl 2658 [2001:888:2000:d::a6]:46718 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:43673 |
Show key headers only | View raw
On Wed, Apr 17, 2013 at 1:20 AM, <idkfaidkfaidkfa@gmail.com> wrote: > Hi all, > i'm programming in python for the first time (usually i use C as programming language). I don't understand these results: > >>>> a=[1,2,3,4,5] >>>> a[:-1] > [1, 2, 3, 4] >>>> a[::-1] > [5, 4, 3, 2, 1] >>>> a[2::-1] > [3, 2, 1] > > what does a[2::-1] means? That's taking a slice. This page has something to say on the subject: http://docs.python.org/3.3/tutorial/introduction.html By the way, regarding your email address: there are no cheat codes in Python... either that, or Python *is* a cheat code. :) ChrisA [[ VERY HAPPY CODING ADDED ]]
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Newbie questions on Python idkfaidkfaidkfa@gmail.com - 2013-04-16 08:20 -0700
Re: Newbie questions on Python Chris Angelico <rosuav@gmail.com> - 2013-04-17 01:30 +1000
Re: Newbie questions on Python Walter Hurry <walterhurry@lavabit.com> - 2013-04-16 21:40 +0000
Re: Newbie questions on Python Chris Angelico <rosuav@gmail.com> - 2013-04-17 07:53 +1000
Re: Newbie questions on Python Matt Jones <matt.walker.jones@gmail.com> - 2013-04-16 10:33 -0500
Re: Newbie questions on Python Neil Cerutti <neilc@norwich.edu> - 2013-04-16 15:41 +0000
Re: Newbie questions on Python Lele Gaifax <lele@metapensiero.it> - 2013-04-16 18:06 +0200
Re: Newbie questions on Python Neil Cerutti <neilc@norwich.edu> - 2013-04-16 17:16 +0000
csiph-web