Skip to content

Commit c6142fd

Browse files
committed
Bug fixing 6th trial
1 parent e83bb03 commit c6142fd

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Week04/functions_tarik_bozgan.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
custom_power = lambda x=0, /, e=1: x ** e
22

3-
def custom_equation(x=0, y=0, /, a=1, b=1, *, c=1):
3+
def custom_equation(x: int = 0, y: int = 0, /, a: int = 1, b: int = 1, *, c: int = 1) -> float:
4+
"""
5+
Returns (x**a + y**b) / c
6+
7+
:param x: First value
8+
:param y: Second value
9+
:param a: Exponent for x
10+
:param b: Exponent for y
11+
:param c: Divisor
12+
:return: Result of (x**a + y**b) / c
13+
"""
414
return (x ** a + y ** b) / c
515

616
_calls = {}

0 commit comments

Comments
 (0)