Shakeel1979 commited on
Commit
cb88584
·
verified ·
1 Parent(s): 23c3e38

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -200,7 +200,7 @@ def main():
200
  midpoints = calculate_midpoints(x1, y1, x2, y2, x3, y3)
201
 
202
  # Display results in columns
203
- col1, col2, col3 = st.columns(3)
204
 
205
  with col1:
206
  st.subheader("Coordinates of Triangle:")
@@ -214,12 +214,20 @@ def main():
214
  st.markdown(f"Side b: **{b:.3f}** units")
215
  st.markdown(f"Side c: **{c:.3f}** units")
216
 
217
- with col3:
 
 
218
  st.subheader("Angles of Triangle:")
219
  st.markdown(f"Angle A: **{A:.3f}°**")
220
  st.markdown(f"Angle B: **{B:.3f}°**")
221
  st.markdown(f"Angle C: **{C:.3f}°**")
222
 
 
 
 
 
 
 
223
  col1, col2, col3 = st.columns(3)
224
 
225
  with col1:
 
200
  midpoints = calculate_midpoints(x1, y1, x2, y2, x3, y3)
201
 
202
  # Display results in columns
203
+ col1, col2 = st.columns(2)
204
 
205
  with col1:
206
  st.subheader("Coordinates of Triangle:")
 
214
  st.markdown(f"Side b: **{b:.3f}** units")
215
  st.markdown(f"Side c: **{c:.3f}** units")
216
 
217
+ col1, col2 = st.columns(2)
218
+
219
+ with col1:
220
  st.subheader("Angles of Triangle:")
221
  st.markdown(f"Angle A: **{A:.3f}°**")
222
  st.markdown(f"Angle B: **{B:.3f}°**")
223
  st.markdown(f"Angle C: **{C:.3f}°**")
224
 
225
+ with col2:
226
+ st.subheader("Mid-Points of Triangle:")
227
+ st.markdown(f"Midpoint of AB: ({midpoints[0][0]:.3f}, {midpoints[0][1]:.3f})")
228
+ st.markdown(f"Midpoint of BC: ({midpoints[1][0]:.3f}, {midpoints[1][1]:.3f})")
229
+ st.markdown(f"Midpoint of CA: ({midpoints[2][0]:.3f}, {midpoints[2][1]:.3f})")
230
+
231
  col1, col2, col3 = st.columns(3)
232
 
233
  with col1: