Skip to content

Commit 26b62d4

Browse files
authored
Update functions_burak_talha_memis.py
1 parent 65de0c8 commit 26b62d4

File tree

1 file changed

+16
-7
lines changed

1 file changed

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

33
def custom_equation(x = 0,y = 0,/,a = 1,b = 1, * ,c = 1)->float:
4+
"""
5+
This function
6+
:param x:The first number, default is 0
7+
:type x: int
8+
:param y:The second number, default is 0
9+
:type y: int
10+
:param a:The third number, default is 1
11+
:type a: int
12+
:param b:The fourth number, default is 1
13+
:type b: int
14+
:param c:The fifth number, default is 1
15+
:type c: int
16+
:return:The sum of 'x' power 'a' and 'y' power 'b' divided by c
17+
:rtype:float
18+
"""
419
return (x**a + y**b) / c
5-
'''
6-
x is positional-only with default value 0
7-
y is positional-only with default value 0
8-
a is positional-or-keyword with default value 1
9-
b is positional-or-keyword with default value 1
10-
c is keyword-only with default value 1
11-
'''
1220

1321
def fn_w_counter() -> (int, dict[str,int]):
1422
if not hasattr(fn_w_counter, 'counter'):
@@ -23,4 +31,5 @@ def fn_w_counter() -> (int, dict[str,int]):
2331
fn_w_counter.callers[__name__] += 1
2432
else:
2533
fn_w_counter.callers[__name__] = 1
34+
2635

0 commit comments

Comments
 (0)