Sequences in list

Michael Spencer mahs at telcopartners.com
Mon May 2 17:31:39 EDT 2005


Michael Spencer wrote:

> 
> def compare_forms(sequence):
>      """test whether all groups of a sequence have the same form"""
>      for length in range(4,2,-1): # look for longest match first

oops, make that range(4,1,-1) or, simply (4,3,2)

Michael




More information about the Python-list mailing list