DOMMETI commited on
Commit
260ce6a
·
verified ·
1 Parent(s): 30afa4a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -126,3 +126,16 @@ if st.button('Start the Experiment: Will it Rain or Not?'):
126
  for i in range(1, Trail + 1):
127
  result = random.choice(['Rain', 'No Rain'])
128
  st.write(f"Trial {i}: **{result}**")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126
  for i in range(1, Trail + 1):
127
  result = random.choice(['Rain', 'No Rain'])
128
  st.write(f"Trial {i}: **{result}**")
129
+ st.subheader("Outcome")
130
+ 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
+ Trail = 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} trials...")
137
+ list1=[]
138
+ for i in range(1, Trail + 1):
139
+ result = random.choice(['Rain', 'No Rain'])
140
+ list1+=[result]
141
+ st.write(f"Sample_Space:{np.unique(list1)}")