comparing lists

Delaney, Timothy tdelaney at avaya.com
Wed May 8 23:28:53 EDT 2002


>     r = [(randrange(0, len(str)), randrange(0, len(str))) for 
> x in range(randrange(0, len(str)))]

Ignore these horrible list comprehensions - they're bad. Normally I would
have used a named function and map, but I was extending Lulu's code, and was
lazy ...

Tim Delaney





More information about the Python-list mailing list