On Tue, Oct 28, 2014 at 4:13 PM, Clayton Kirkwood <[email protected]> wrote:
> Explain this double speak(>:
>
> [pair for pair in values if key == pair[0]]
Hi Clayton,
Here is a rewording of that expression to an approximately equivalent statement:
#######################
some_list = []
for pair in values:
if key == pair[0]:
some_list.append(pair)
#######################
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor