Handling lists

superprad at gmail.com superprad at gmail.com
Sat Apr 23 16:26:19 EDT 2005


yes that makes sense.But the problem I am facing is  if list=
[300,301,303,305] I want to consider it as one cluster and include the
range as [300,305] so this is where I am missing the ranges.
so If the list has l = [300,301,302,308,401,402,403,408] i want to
include it as [[300,308],[401,408]].




More information about the Python-list mailing list