Which is the best way...

Aktay Ruhi ruhi.aktay at de.bosch.com
Thu Aug 16 07:26:34 EDT 2001


if the list looks like ['b','c','e','d','a'],
then which item of the list would you say is the first non-ordered one ?

Matthew D. Wood schrieb in Nachricht ...
>I have an interesting code-correctness question.  I firmly believe in
>doing things 'The Right Way' and I'm not sure which of these 3 blocks is
>better.  So, if you code-guru's could help me out I would definitely
>appreciate it.
>
>
>
>###################################################
>
>#!/usr/bin/env python
>
>list_a = ['a', 'b', 'e', 'c', 'd']
>list_b = ['a', 'b', 'c', 'd', 'e']
>
>
[snip]





More information about the Python-list mailing list