From 23fac3c479d99eb79f4d3b9f5f0e9f101fc2eee9 Mon Sep 17 00:00:00 2001 From: Scarfinos Date: Wed, 30 Oct 2024 09:55:48 +0100 Subject: [PATCH] #9943 : improve coverage of average_mode.py --- maths/average_mode.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/maths/average_mode.py b/maths/average_mode.py index 40f88f41f..7a2ed1827 100644 --- a/maths/average_mode.py +++ b/maths/average_mode.py @@ -7,6 +7,8 @@ def mode(input_list: list) -> list[Any]: 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]) [2] >>> mode([3, 4, 5, 3, 4, 2, 5, 2, 2, 4, 4, 2, 2, 2])