Skip to content

Commit 60610b3

Browse files
Update functions_irem_dilsat_kose.py
1 parent 8f44a1a commit 60610b3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Week03/functions_irem_dilsat_kose.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
custom_power = lambda x, /, e=1 : x**e
1+
custom_power = lambda x=0, /, e=1 : x**e
22

3-
def custom_equation(x: int, y: int, /, a: int = 1, b: int = 1, *, c: int = 1)-> float:
3+
def custom_equation(x: int = 0, y: int = 0, /, a: int = 1, b: int = 1, *, c: int = 1)-> float:
44
"""
55
This function computes the expression (x**a + y**b)/c
66
7-
:param x:The first number, default=0
7+
:param x:The first number, default is 0
88
:type x:int
9-
:param y:The second number, default=0
9+
:param y:The second number, default is 0
1010
:type y:int
11-
:param a:The third number, default=1
11+
:param a:The third number, default is 1
1212
:type a:int
13-
:param b:The fourth number, default=1
13+
:param b:The fourth number, default is 1
1414
:type b:int
15-
:param c:The fifth number, default=1
15+
:param c:The fifth number, default is 1
1616
:type c:int
1717
:return: The result of the equation (x**a + y**b)/c
1818
:rtype: float

0 commit comments

Comments
 (0)