Spaces:
Sleeping
Sleeping
Update pages/1_Probability.py
Browse files- pages/1_Probability.py +1 -1
pages/1_Probability.py
CHANGED
|
@@ -116,7 +116,7 @@ Trail_4 = st.number_input("Number of Trials:", min_value=1, max_value=100, value
|
|
| 116 |
if st.button('Start the Experiment: Will it Rain or Not?',key="start_experiment_3"):
|
| 117 |
st.write(f"Running {Trail_4} trials...")
|
| 118 |
list1=[]
|
| 119 |
-
for i in range(1,
|
| 120 |
result = random.choice(['Rain', 'No Rain'])
|
| 121 |
list1+=[result]
|
| 122 |
p_rain_1=1/len(np.unique(list1))
|
|
|
|
| 116 |
if st.button('Start the Experiment: Will it Rain or Not?',key="start_experiment_3"):
|
| 117 |
st.write(f"Running {Trail_4} trials...")
|
| 118 |
list1=[]
|
| 119 |
+
for i in range(1, Trail_4 + 1):
|
| 120 |
result = random.choice(['Rain', 'No Rain'])
|
| 121 |
list1+=[result]
|
| 122 |
p_rain_1=1/len(np.unique(list1))
|