We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89cf7c8 commit 8f990c4Copy full SHA for 8f990c4
1 file changed
src/flip_coins.py
@@ -6,12 +6,12 @@
6
import pandas
7
8
9
-def flip_coin(chosen_side: str) -> dict:
+def flip_coin(chosen_side: str) -> pandas.DataFrame:
10
"""Return the result of a single coin flip given the chosen side
11
12
:param str chosen_side: The player's chosen side ("heads", "tails")
13
- :return: the result of the single coin flip
14
- :rtype: dict
+ :return: the result of the single coin flip in a dataframe
+ :rtype: pandas.DataFrame
15
:raises ValueError: if the chosen_side is empty or not "heads" or "tails"
16
:raises TypeError: if the chosen_side is not a string
17
0 commit comments