Skip to content

Commit e570787

Browse files
committed
10th commit to fix bugs
1 parent 4c5a411 commit e570787

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Week04/functions_tarik_bozgan.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sys
22

3-
custom_power = lambda x, /, e=1: x**e
3+
custom_power = lambda x=0, /, e=1: x**e
44

55
def custom_equation(x: int = 0, y: int = 0, /, a: int = 1, b: int = 1, *, c: int = 1) -> float:
66
"""
@@ -16,7 +16,7 @@ def custom_equation(x: int = 0, y: int = 0, /, a: int = 1, b: int = 1, *, c: int
1616
"""
1717
return (x**a + y**b) / c
1818

19-
def fn_w_counter() -> tuple:
19+
def fn_w_counter() -> tuple[int, dict[str, int]]:
2020
if not hasattr(fn_w_counter, 'count'):
2121
fn_w_counter.count = 0
2222
fn_w_counter.callers = {}

0 commit comments

Comments
 (0)