DOMMETI commited on
Commit
7b2ef34
·
verified ·
1 Parent(s): 46e881c

Update pages/2_Events.py

Browse files
Files changed (1) hide show
  1. pages/2_Events.py +2 -2
pages/2_Events.py CHANGED
@@ -128,13 +128,13 @@ if numbers_input_5:
128
  st.write(f"The above event is empty because there is no chance that event will happen")
129
  st.subheader("Independent Events")
130
  st.markdown("""An event is said to be independent event when the probability of occurance of one event doesnot effect the probability of other event.""",unsafe_allow_html=True)
131
- st.title("Tossing a coin and rolling a die.")
132
  Trail_6 = st.number_input("Number of Trials:", min_value=1, max_value=100, value=7,key="Trail_6")
133
  if st.button('Start the Experiment: Will it Rain or Not? and Tossing a Coin',key="start_experiment_5"):
134
  st.write(f"Running {Trail_6} trials...")
135
  list1=[]
136
  list2=[]
137
- for i in range(1, Trail_4 + 1):
138
  result = random.choice(['Rain', 'No Rain'])
139
  result1= random.choice(['Head','Tail'])
140
  list1+=[result]
 
128
  st.write(f"The above event is empty because there is no chance that event will happen")
129
  st.subheader("Independent Events")
130
  st.markdown("""An event is said to be independent event when the probability of occurance of one event doesnot effect the probability of other event.""",unsafe_allow_html=True)
131
+ st.title("Tossing a coin and Rain prediction.")
132
  Trail_6 = st.number_input("Number of Trials:", min_value=1, max_value=100, value=7,key="Trail_6")
133
  if st.button('Start the Experiment: Will it Rain or Not? and Tossing a Coin',key="start_experiment_5"):
134
  st.write(f"Running {Trail_6} trials...")
135
  list1=[]
136
  list2=[]
137
+ for i in range(1, Trail_6 + 1):
138
  result = random.choice(['Rain', 'No Rain'])
139
  result1= random.choice(['Head','Tail'])
140
  list1+=[result]