Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,11 +14,8 @@ def calculate_probability(total_outcomes: int, desired_outcomes: int)-> float: #
|
|
14 |
"""Calculate the probability of an event in the sample space.
|
15 |
|
16 |
Args:
|
17 |
-
total_outcomes
|
18 |
-
desired_outcomes
|
19 |
-
|
20 |
-
Returns:
|
21 |
-
float: The probability of the event.
|
22 |
"""
|
23 |
# Kiểm tra xem tổng số kết quả có thể có phải hợp lệ không
|
24 |
if total_outcomes <= 0:
|
|
|
14 |
"""Calculate the probability of an event in the sample space.
|
15 |
|
16 |
Args:
|
17 |
+
total_outcomes: The total number of possible outcomes.
|
18 |
+
desired_outcomes: The number of desired outcomes.
|
|
|
|
|
|
|
19 |
"""
|
20 |
# Kiểm tra xem tổng số kết quả có thể có phải hợp lệ không
|
21 |
if total_outcomes <= 0:
|