Le 08.12.2013 18:59, [email protected] a écrit :
i have a dictionary with names and ages for each name. I want to write a function that takes in an age and returns the names of all the people who are that age. please help
ageDict = { 'john':42, 'jane':36, 'paul':42 }
peopleWithAge = lambda age: [ name for name in ageDict if
ageDict[name]==age]
--
https://mail.python.org/mailman/listinfo/python-list
