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]].

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to