Update app.py
Browse files
app.py
CHANGED
|
@@ -19,11 +19,10 @@ def sum_of_two(a,b):
|
|
| 19 |
return(sum1)
|
| 20 |
|
| 21 |
st.markdown("<h5 style='text-align:center; font-size:24px;'>Mathematical and String Operations</h5>", unsafe_allow_html=True)
|
| 22 |
-
radio_bar = st.radio(options=[description1, description2, description3, description4, description5, description6, description7, description8, description9], label="Select any one:")
|
| 23 |
if radio_bar == description1:
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
if form1.form_submit_button("Calculate result"):
|
| 28 |
result = sum_of_two(first_num,second_num)
|
| 29 |
st.success(f"Answer = {result}")
|
|
|
|
| 19 |
return(sum1)
|
| 20 |
|
| 21 |
st.markdown("<h5 style='text-align:center; font-size:24px;'>Mathematical and String Operations</h5>", unsafe_allow_html=True)
|
| 22 |
+
radio_bar = st.sidebar.radio(options=[description1, description2, description3, description4, description5, description6, description7, description8, description9], label="Select any one:")
|
| 23 |
if radio_bar == description1:
|
| 24 |
+
first_num = st.number_input(label="Enter First Number",value=None)
|
| 25 |
+
second_num = st.number_input(label="Enter Second Number",value=None)
|
| 26 |
+
if st.button("Calculate result"):
|
|
|
|
| 27 |
result = sum_of_two(first_num,second_num)
|
| 28 |
st.success(f"Answer = {result}")
|