mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-23 21:11:08 +00:00
#9943 : improve coverage of average_mode.py
This commit is contained in:
parent
66ab2a1f61
commit
23fac3c479
|
@ -7,6 +7,8 @@ def mode(input_list: list) -> list[Any]:
|
||||||
|
|
||||||
The input list may contain any Datastructure or any Datatype.
|
The input list may contain any Datastructure or any Datatype.
|
||||||
|
|
||||||
|
>>> mode([])
|
||||||
|
[]
|
||||||
>>> mode([2, 3, 4, 5, 3, 4, 2, 5, 2, 2, 4, 2, 2, 2])
|
>>> mode([2, 3, 4, 5, 3, 4, 2, 5, 2, 2, 4, 2, 2, 2])
|
||||||
[2]
|
[2]
|
||||||
>>> mode([3, 4, 5, 3, 4, 2, 5, 2, 2, 4, 4, 2, 2, 2])
|
>>> mode([3, 4, 5, 3, 4, 2, 5, 2, 2, 4, 4, 2, 2, 2])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user