Skip to content

Commit 2c58558

Browse files
Update functions_fevzi_bagriacik.py
1 parent 5b29aba commit 2c58558

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Week04/functions_fevzi_bagriacik.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
custom_power = lambda x = 0, /, e = 1 : x ** e
44

5-
def custom_equation(x=0, y=0, /, a=1, b=1, *, c=1) -> float:
6-
"""
7-
This function calculates (x ** a + y ** b) / c.
5+
def custom_equation(x: int = 0, y: int = 0, /, a: int = 1, b: int = 1, *, c: int = 1) -> float:
6+
"""This function calculates (x ** a + y ** b) / c.
87
98
:param x: First number (positional only, default 0)
109
:param y: Second number (positional only, default 0)
@@ -13,10 +12,9 @@ def custom_equation(x=0, y=0, /, a=1, b=1, *, c=1) -> float:
1312
:param c: Fifth number (keyword only, default 1)
1413
:return: (x ** a + y ** b) / c
1514
"""
15+
return float((x + y + a + b) / c)
1616

17-
return (x ** a + y ** b) / c
18-
19-
def fn_w_counter() -> (int, dict):
17+
def fn_w_counter() -> (int, dict[str, int]):
2018
if not hasattr(fn_w_counter, 'total_count'):
2119
fn_w_counter.total_count = 0
2220
fn_w_counter.caller_dict = {}

0 commit comments

Comments
 (0)