DOMMETI commited on
Commit
98f3b48
·
verified ·
1 Parent(s): 8487619

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -113,10 +113,8 @@ st.title("Random Experiment: Coin Toss")
113
 
114
  # Description
115
  st.write("""
116
- This simple experiment simulates a random coin toss. Each time you click the button, the coin is tossed, and the result will be either 'Heads' or 'Tails'.
117
  """)
118
-
119
- # Button to simulate the coin toss
120
- if st.button('Toss the Coin'):
121
- result = random.choice(['Heads', 'Tails']) # Randomly choose between Heads or Tails
122
  st.write(f"The result is: **{result}**")
 
113
 
114
  # Description
115
  st.write("""
116
+ This simple experiment simulates a random prediction will it rain or not. Each time you click the button you will get a random result that it will rain or not.
117
  """)
118
+ if st.button('Will it rain or not'):
119
+ result = random.choice(['Rain','NoRain'])
 
 
120
  st.write(f"The result is: **{result}**")