diff --git a/ch07-comprehensions/e29b3_age_in_months.py b/ch07-comprehensions/e29b3_age_in_months.py index 1055b33..e4cbf88 100755 --- a/ch07-comprehensions/e29b3_age_in_months.py +++ b/ch07-comprehensions/e29b3_age_in_months.py @@ -5,5 +5,5 @@ def age_in_months(list_of_people): return [dict(**one_person, age_in_months=one_person['age'] * 12) - for one_person in mylist + for one_person in list_of_people if one_person['age'] <= 20]