Skip to content

Commit 1807528

Browse files
committed
Bug fix 7th trial
1 parent c6142fd commit 1807528

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Week04/functions_tarik_bozgan.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,21 @@
22

33
def custom_equation(x: int = 0, y: int = 0, /, a: int = 1, b: int = 1, *, c: int = 1) -> float:
44
"""
5-
Returns (x**a + y**b) / c
5+
Calculate (x**a + y**b) / c
66
7-
:param x: First value
8-
:param y: Second value
7+
:param x: First base value
8+
:param y: Second base value
99
:param a: Exponent for x
1010
:param b: Exponent for y
1111
:param c: Divisor
12-
:return: Result of (x**a + y**b) / c
12+
:return: The result of (x**a + y**b) / c
13+
:rtype: float
1314
"""
1415
return (x ** a + y ** b) / c
1516

1617
_calls = {}
1718

18-
def fn_w_counter():
19+
def fn_w_counter() -> tuple[int, dict[str, int]]:
1920
caller = __import__('inspect').currentframe().f_back.f_code.co_name
2021
_calls[caller] = _calls.get(caller, 0) + 1
2122
return _calls[caller], dict(_calls)

0 commit comments

Comments
 (0)