Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #41968
| References | <fb693612-418f-459e-9141-6f837368cfd7@googlegroups.com> |
|---|---|
| From | Xavier Ho <contact@xavierho.com> |
| Date | 2013-03-27 11:19 +1100 |
| Subject | Re: how do you make a loop run in reverse? |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3785.1364343607.2939.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
There is a built-in function that reverses an iterable. Have a look at the documentation. xav On 27 March 2013 10:59, <rahulreddy24@hotmail.com> wrote: > So i have a set of for loops that create this : > > *************************************** > *** *** *** *** *** *** *** > *** *** *** *** *** *** *** > *** *** *** *** *** *** *** > *** *** *** *** *** *** *** > *************************************** > > * > *** > ***** > ******* > ********* > > but i want to nest all the loops under one BIG loop that'll run in reverse > to make this: > > *************************************** > *** *** *** *** *** *** *** > *** *** *** *** *** *** *** > *** *** *** *** *** *** *** > *** *** *** *** *** *** *** > *************************************** > > * > *** > ***** > ******* > ********* > ******* > ***** > *** > * > *************************************** > *** *** *** *** *** *** *** > *** *** *** *** *** *** *** > *** *** *** *** *** *** *** > *** *** *** *** *** *** *** > *************************************** > > Is this possible? > -- > http://mail.python.org/mailman/listinfo/python-list >
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
how do you make a loop run in reverse? rahulreddy24@hotmail.com - 2013-03-26 16:59 -0700 Re: how do you make a loop run in reverse? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-03-27 00:18 +0000 Re: how do you make a loop run in reverse? Xavier Ho <contact@xavierho.com> - 2013-03-27 11:19 +1100 Re: how do you make a loop run in reverse? Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2013-03-27 01:08 +0000 Re: how do you make a loop run in reverse? Dave Angel <davea@davea.name> - 2013-03-26 20:08 -0400 Re: how do you make a loop run in reverse? Arnaud Delobelle <arnodel@gmail.com> - 2013-03-27 21:18 +0000
csiph-web