generated from mwc/lab_weather
completed the count funtion
This commit is contained in:
parent
5ee3d4b6fa
commit
291398cae9
|
@ -10,14 +10,10 @@
|
||||||
# each and instead write code which returns the expected values.
|
# each and instead write code which returns the expected values.
|
||||||
|
|
||||||
def count_people(people):
|
def count_people(people):
|
||||||
"""Counts the number of people.
|
#Counts the number of people in the list/dict sent
|
||||||
|
count = len(people)
|
||||||
>>> count_people(family)
|
return count
|
||||||
5
|
|
||||||
>>> count_people(friends)
|
|
||||||
10
|
|
||||||
"""
|
|
||||||
raise NotImplementedError()
|
|
||||||
|
|
||||||
def get_email(people, name):
|
def get_email(people, name):
|
||||||
"""Returns the named person's email address. If there is no such person, returns None.
|
"""Returns the named person's email address. If there is no such person, returns None.
|
||||||
|
|
Loading…
Reference in New Issue