Skip to content

Commit b5b96de

Browse files
committed
rename file
1 parent 3004b13 commit b5b96de

File tree

5 files changed

+2
-1
lines changed
  • src/7_function

5 files changed

+2
-1
lines changed

src/7_function/making_an_n-argument_callable_work_as_a_callable_with_fewer_arguments/example1.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Example of using partial() with sorting a list of (x,y) coordinates
2+
from functools import partial
3+
import math
24

35
points = [ (1, 2), (3, 4), (5, 6), (7, 7) ]
46

5-
import math
67
def distance(p1, p2):
78
x1, y1 = p1
89
x2, y2 = p2

0 commit comments

Comments
 (0)