Skip to content

Commit d5abe40

Browse files
authored
Final QA (realpython#594)
1 parent cad1048 commit d5abe40

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

python-closure/roots.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def root_calculator(number):
88
square_root = make_root_calculator(2, 4)
99
print(square_root(42))
1010

11-
cubic_root = make_root_calculator(3, 2)
11+
cubic_root = make_root_calculator(3)
1212
print(cubic_root(42))
1313

1414

@@ -24,5 +24,5 @@ def __call__(self, number):
2424
square_root = RootCalculator(2, 4)
2525
print(square_root(42))
2626

27-
cubic_root = RootCalculator(3, 2)
27+
cubic_root = RootCalculator(3)
2828
print(cubic_root(42))

0 commit comments

Comments
 (0)