8000 minor_changes · ammarlodhi255/python-src@8d132af · GitHub
[go: up one dir, main page]

Skip to content

Commit 8d132af

Browse files
committed
minor_changes
1 parent 66ad882 commit 8d132af

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Binary file not shown.

Python modules/my_module.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import math
2+
3+
print("Ammars module")
4+
5+
test_str = "This is a test string from 'my_module'"
6+
7+
def calculate_distance(point_1, point_2):
8+
x1 = point_1[0]
9+
y1 = point_1[1]
10+
x2 = point_2[0]
11+
y2 = point_2[1]
12+
13+
dist = math.sqrt( ((x2 - x1) ** 2) + ((y2 - y1) ** 2) )
14+
return dist
15+
16+
17+
18+

0 commit comments

Comments
 (0)
0