Skip to content

Commit 0d37e22

Browse files
Update functions_egehan_hatipoglu.py
1 parent f0c107d commit 0d37e22

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

‎Week04/functions_egehan_hatipoglu.py‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
custom_power = lambda x=0, /, e=1: x**e
2-
3-
4-
def custom_equation(
5-
x: int = 0, y: int = 0, /, a: int = 1, b: int = 1, *, c: int = 1
6-
) -> float:
7-
1+
def custom_equation(x: int, y: int, a: int, b: int, c: int) -> float:
82
"""Calculates the custom equation.
93
104
:param x: first base
5+
:type x: int
6+
:param y: second base
7+
:type y: int
8+
:param a: first exponent
9+
:type a: int
10+
:param b: second exponent
11+
:type b: int
1112
:param c: divisor
1213
:type c: int
1314
:return: the result of (x**a + y**b) / c
1415
:rtype: float
1516
"""
16-
1717
return float((x**a + y**b) / c)
1818

1919

0 commit comments

Comments
 (0)