Vihang28 commited on
Commit
2b548ef
·
1 Parent(s): 818af61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -1,7 +1,5 @@
1
  import streamlit as st
2
 
3
- title = "Mathematical and String Operations"
4
-
5
  description1 = "Given two integer numbers, return their product only if the product is equal to or lower than 1000. Otherwise, return their sum."
6
  description2 = "Iterate the first 10 numbers, and in each iteration, returns the sum of the current and previous number."
7
  description3 = "Display characters that are present at an even index number from the provided string"
@@ -20,7 +18,7 @@ def sum_of_two(a,b):
20
  else:
21
  return(sum1)
22
 
23
- st.markdown("<h5 style='text-align:center; font-size:24px;'>{title}</h5>", unsafe_allow_html=True)
24
  radio_bar = st.radio(options=[description1, description2, description3, description4, description5, description6, description7, description8, description9], label="Select any one.")
25
  if radio_bar == description1:
26
  first_num = st.number_input(label="Enter First Number")
 
1
  import streamlit as st
2
 
 
 
3
  description1 = "Given two integer numbers, return their product only if the product is equal to or lower than 1000. Otherwise, return their sum."
4
  description2 = "Iterate the first 10 numbers, and in each iteration, returns the sum of the current and previous number."
5
  description3 = "Display characters that are present at an even index number from the provided string"
 
18
  else:
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
  first_num = st.number_input(label="Enter First Number")