Update app.py
Browse files
app.py
CHANGED
|
@@ -42,8 +42,8 @@ st.write("---")
|
|
| 42 |
radio_bar = st.sidebar.radio(options=[description1, description2, description3, description4, description5, description6, description7, description8, description9], label="Select any one:")
|
| 43 |
if radio_bar == description1:
|
| 44 |
st.markdown("<h6 style='text-align:center; font-size:16px;'>"+description1+"</h6>", unsafe_allow_html=True)
|
| 45 |
-
first_num = st.number_input(label="Enter First Number",value=0)
|
| 46 |
-
second_num = st.number_input(label="Enter Second Number",value=0)
|
| 47 |
all_data = st.button("Calculate result")
|
| 48 |
if all_data:
|
| 49 |
result = sum_of_two(first_num,second_num)
|
|
@@ -51,7 +51,7 @@ if radio_bar == description1:
|
|
| 51 |
|
| 52 |
if radio_bar == description2 :
|
| 53 |
st.markdown("<h6 style='text-align:center; font-size:16px;'>"+description2+"</h6>", unsafe_allow_html=True)
|
| 54 |
-
first_num = st.number_input(label="Enter Starting Number",value=0)
|
| 55 |
all_data = st.button("Show result")
|
| 56 |
if all_data:
|
| 57 |
result = start_iteration(first_num)
|
|
@@ -59,7 +59,7 @@ if radio_bar == description2 :
|
|
| 59 |
|
| 60 |
if radio_bar == description3 :
|
| 61 |
st.markdown("<h6 style='text-align:center; font-size:16px;'>"+description3+"</h6>", unsafe_allow_html=True)
|
| 62 |
-
str1 = st.text_input(label="Enter the string",value=
|
| 63 |
all_data = st.button("Show result")
|
| 64 |
if all_data:
|
| 65 |
result = even_index(str1)
|
|
|
|
| 42 |
radio_bar = st.sidebar.radio(options=[description1, description2, description3, description4, description5, description6, description7, description8, description9], label="Select any one:")
|
| 43 |
if radio_bar == description1:
|
| 44 |
st.markdown("<h6 style='text-align:center; font-size:16px;'>"+description1+"</h6>", unsafe_allow_html=True)
|
| 45 |
+
first_num = st.number_input(label="Enter First Number:",value=0)
|
| 46 |
+
second_num = st.number_input(label="Enter Second Number:",value=0)
|
| 47 |
all_data = st.button("Calculate result")
|
| 48 |
if all_data:
|
| 49 |
result = sum_of_two(first_num,second_num)
|
|
|
|
| 51 |
|
| 52 |
if radio_bar == description2 :
|
| 53 |
st.markdown("<h6 style='text-align:center; font-size:16px;'>"+description2+"</h6>", unsafe_allow_html=True)
|
| 54 |
+
first_num = st.number_input(label="Enter Starting Number:",value=0)
|
| 55 |
all_data = st.button("Show result")
|
| 56 |
if all_data:
|
| 57 |
result = start_iteration(first_num)
|
|
|
|
| 59 |
|
| 60 |
if radio_bar == description3 :
|
| 61 |
st.markdown("<h6 style='text-align:center; font-size:16px;'>"+description3+"</h6>", unsafe_allow_html=True)
|
| 62 |
+
str1 = st.text_input(label="Enter the string:",value="")
|
| 63 |
all_data = st.button("Show result")
|
| 64 |
if all_data:
|
| 65 |
result = even_index(str1)
|