Skip to content

Commit d120706

Browse files
committed
Bug fixing again
1 parent bc37b50 commit d120706

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Week04/functions_tarik_bozgan.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,15 @@
33

44

55
def custom_equation(x: int = 0, y: int = 0, /, a: int = 1, b: int = 1, *, c: int = 1) -> float:
6-
"""(x**a + y**b) / c"""
6+
"""
7+
Calculates the result.
8+
:param x: Base number 1
9+
:param y: Base number 2
10+
:param a: Exponent for x
11+
:param b: Exponent for y
12+
:param c: Divisor
13+
:return: The calculated result as a float
14+
"""
715
return (x**a + y**b) / c
816

917

0 commit comments

Comments
 (0)