Skip to content

Commit 010b96a

Browse files
committed
Area of triangle added
1 parent 68e68e0 commit 010b96a

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

mean_mode_var.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,5 @@
5858
print(f'Coefficient of Variation of the grouped data: {coefficient_of_variation:.2f}%')
5959
# Display the DataFrame with midpoints
6060
print(df)
61-
# End of the code)
61+
#save the DataFrame to a CSV file
62+
df.to_csv('grouped_data_with_midpoints.csv', index=False)

triangle_area.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
The area of the triangle formed by the points (5.0, 3.0), (6.0, 4.0), and (2.0, 9.0) is: 4.5 square units.
2+
The triangle has been plotted and displayed.

triangle_plot.png

2.34 KB
Loading

0 commit comments

Comments
 (0)