Skip to content

Commit 2e5fcdd

Browse files
Update functions_mehmet_mert_yigit.py
1 parent 1aef47b commit 2e5fcdd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎Week04/functions_mehmet_mert_yigit.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import inspect
22

33

4-
custom_power = lambda x=0, e=1, /: x ** e
4+
custom_power = lambda x=0, /, e=1: x ** e
55

66

77
def custom_equation(
@@ -21,13 +21,13 @@ def custom_equation(
2121
:param a: Exponent of x.
2222
:param b: Exponent of y.
2323
:param c: Divisor.
24-
:return: Result of the equation.
24+
:return: The calculated result.
2525
:rtype: float
2626
"""
2727
return float((x ** a + y ** b) / c)
2828

2929

30-
def fn_w_counter():
30+
def fn_w_counter() -> tuple[int, dict[str, int]]:
3131
if not hasattr(fn_w_counter, "counts"):
3232
fn_w_counter.counts = {}
3333

0 commit comments

Comments
 (0)