Update app.py
Browse files46 unmodified lines4748495051525339 unmodified lines9394959646 unmodified linesnew_sub_str = sub_str.lower()x = new_str3.count(new_sub_str)return xst.markdown("<h3 style='text-align:center; font-size:24px;'>Mathematical and String Operations</h3>", unsafe_allow_html=True)st.write("---")39 unmodified linesall_data = st.button("Show result")if all_data:result = str_count(str3,sub_str)st.success(f"The sub-string is present {result} times in the string")46 unmodified lines4748495051525354555657585939 unmodified lines9910010110210310410510610710810911046 unmodified linesnew_sub_str = sub_str.lower()x = new_str3.count(new_sub_str)return xdef check_palin(check_num):num_str = str(check_num)if num_str == num_str[::-1] :return("Palindrom")else:return("Not Palindrom")st.markdown("<h3 style='text-align:center; font-size:24px;'>Mathematical and String Operations</h3>", unsafe_allow_html=True)st.write("---")39 unmodified linesall_data = st.button("Show result")if all_data:result = str_count(str3,sub_str)st.success(f"The sub-string is present {result} times in the string.")if radio_bar == description6 :st.markdown("<h6 style='text-align:center; font-size:16px;'>"+description6+"</h6>", unsafe_allow_html=True)check_num = st.number_input(label="Enter First Number:",value=0)all_data = st.button("Check")if all_data:result = check_palin(check_num)st.success(result)
app.py+16-2