Skip to content

Commit 758df7f

Browse files
Update functions_irem_dilsat_kose.py
1 parent 5c2bd18 commit 758df7f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Week03/functions_irem_dilsat_kose.py

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

33
def custom_equation(x, y, /, a=1, b=1, *, c=1)-> float:
44
"""
@@ -14,6 +14,8 @@ def custom_equation(x, y, /, a=1, b=1, *, c=1)-> float:
1414
:type b:int
1515
:param c:The fifth number, default=1
1616
:type c:int
17+
:return: The result of the equation (x**a + y**b)/c
18+
:rtype: float
1719
1820
"""
1921
return (x**a + y**b) / c

0 commit comments

Comments
 (0)