[Tutor] Would somebody kindly...
Danny Yoo
dyoo at hashcollision.org
Wed Oct 29 00:23:14 CET 2014
On Tue, Oct 28, 2014 at 4:13 PM, Clayton Kirkwood <crk at godblessthe.us> 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)
#######################
More information about the Tutor
mailing list