[Tutor] sorting into lists

Kirk Bailey idiot1@netzero.net
Sat, 21 Sep 2002 00:57:03 -0400


HINT? ok. At the reach of overreaching myself, here goes:

HINT: the address is the information.
HINT: All processes of physics are reversible.
HINT: sorting functions, and module.

Sometimes I manage to trip over some interesting ideas in
my grazing of the public library.

Tim Wilson wrote:
> 
> Hey everyone,
> 
> Let's say I've got a list like the following:
> 
> l = [1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4]
> 
> I'm trying to figure out a good way to turn this list into
> 
> [[1, 1, 1], [2, 2], [3, 3, 3, 3], [4, 4]]
> 
> Any ideas?
> 
> -Tim
> 
> --
> Tim Wilson      |   Visit Sibley online:   | Check out:
> Henry Sibley HS |  http://www.isd197.org   | http://www.zope.com
> W. St. Paul, MN |                          | http://slashdot.org
> wilson@visi.com |  <dtml-var pithy_quote>  | http://linux.com
> 
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor

-- 

end

Respectfully,
             Kirk D Bailey


+---------------------"Thou Art Free." -Eris-----------------------+
| http://www.howlermonkey.net  mailto:highprimate@howlermonkey.net |
| KILL spam dead!      http://www.scambusters.org/stopspam/#Pledge |
| http://www.tinylist.org  +--------+   mailto:grumpy@tinylist.org |
+------------------Thinking| NORMAL |Thinking----------------------+
                           +--------+
-------------------------------------------
Introducing NetZero Long Distance
Unlimited Long Distance only $29.95/ month!
Sign Up Today! www.netzerolongdistance.com