Update app.py
Browse files
app.py
CHANGED
|
@@ -67,6 +67,14 @@ def create_new(num_str1,num_str2):
|
|
| 67 |
fin_lst.append(int(y))
|
| 68 |
return(fin_lst)
|
| 69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
st.markdown("<h3 style='text-align:center; font-size:24px;'>Mathematical and String Operations</h3>", unsafe_allow_html=True)
|
| 71 |
st.write("---")
|
| 72 |
radio_bar = st.sidebar.radio(options=[description1, description2, description3, description4, description5, description6, description7, description8, description9], label="Select any one:")
|
|
@@ -125,7 +133,16 @@ if radio_bar == description7 :
|
|
| 125 |
st.markdown("<h6 style='text-align:center; font-size:16px;'>"+description7+"</h6>", unsafe_allow_html=True)
|
| 126 |
num_str1 = st.text_input(label="Enter the numbers of first list and seperate each number by single space(' '):",value=0)
|
| 127 |
num_str2 = st.text_input(label="Enter the numbers of second list and seperate each number by single space(' '):",value=0)
|
| 128 |
-
all_data = st.button("
|
| 129 |
if all_data:
|
| 130 |
result = create_new(num_str1,num_str2)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
st.success(result)
|
|
|
|
| 67 |
fin_lst.append(int(y))
|
| 68 |
return(fin_lst)
|
| 69 |
|
| 70 |
+
def create_tbl(tbl1,tbl2):
|
| 71 |
+
table_lst = []
|
| 72 |
+
for i in range(tbl1):
|
| 73 |
+
for j in range(tbl2):
|
| 74 |
+
table_lst.append(j*i)
|
| 75 |
+
return(table_lst)
|
| 76 |
+
|
| 77 |
+
|
| 78 |
st.markdown("<h3 style='text-align:center; font-size:24px;'>Mathematical and String Operations</h3>", unsafe_allow_html=True)
|
| 79 |
st.write("---")
|
| 80 |
radio_bar = st.sidebar.radio(options=[description1, description2, description3, description4, description5, description6, description7, description8, description9], label="Select any one:")
|
|
|
|
| 133 |
st.markdown("<h6 style='text-align:center; font-size:16px;'>"+description7+"</h6>", unsafe_allow_html=True)
|
| 134 |
num_str1 = st.text_input(label="Enter the numbers of first list and seperate each number by single space(' '):",value=0)
|
| 135 |
num_str2 = st.text_input(label="Enter the numbers of second list and seperate each number by single space(' '):",value=0)
|
| 136 |
+
all_data = st.button("Show Result")
|
| 137 |
if all_data:
|
| 138 |
result = create_new(num_str1,num_str2)
|
| 139 |
+
st.success(result)
|
| 140 |
+
|
| 141 |
+
if radio_bar == description8 :
|
| 142 |
+
st.markdown("<h6 style='text-align:center; font-size:16px;'>"+description8+"</h6>", unsafe_allow_html=True)
|
| 143 |
+
start_num8 = st.number_input(label="Enter start Number:",value=0)
|
| 144 |
+
end_num8 = st.number_input(label="Enter end Number:",value=0)
|
| 145 |
+
all_data = st.button("Show Result")
|
| 146 |
+
if all_data:
|
| 147 |
+
result = create_new(start_num8,end_num8)
|
| 148 |
st.success(result)
|