Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -131,11 +131,11 @@ st.markdown("""Outcome is nothing but result of a trail.""")
|
|
| 131 |
st.subheader("Sample Space")
|
| 132 |
st.markdown("""Set of all possible outcome of Sample Space..""")
|
| 133 |
st.title("Example of Sample Space")
|
| 134 |
-
|
| 135 |
if st.button('Start the Experiment: Will it Rain or Not?'):
|
| 136 |
-
st.write(f"Running {
|
| 137 |
list1=[]
|
| 138 |
-
for i in range(1,
|
| 139 |
result = random.choice(['Rain', 'No Rain'])
|
| 140 |
list1+=[result]
|
| 141 |
st.write(f"Sample_Space:{np.unique(list1)}")
|
|
|
|
| 131 |
st.subheader("Sample Space")
|
| 132 |
st.markdown("""Set of all possible outcome of Sample Space..""")
|
| 133 |
st.title("Example of Sample Space")
|
| 134 |
+
Trail_1 = st.number_input("Number of Trials:", min_value=1, max_value=100, value=7)
|
| 135 |
if st.button('Start the Experiment: Will it Rain or Not?'):
|
| 136 |
+
st.write(f"Running {Trail_1} trials...")
|
| 137 |
list1=[]
|
| 138 |
+
for i in range(1, Trail_1 + 1):
|
| 139 |
result = random.choice(['Rain', 'No Rain'])
|
| 140 |
list1+=[result]
|
| 141 |
st.write(f"Sample_Space:{np.unique(list1)}")
|