Skip to content

Commit a6704b8

Browse files
Create functions_fevzi_bagriacik.py
1 parent 71f5b39 commit a6704b8

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
custom_power = lambda x = 0, /, e = 1 : x ** e
2+
3+
def custom_equation(x = 0, y = 0, /, a = 1, b = 1, *, c = 1):
4+
"""
5+
This function calculates (x ** a + y ** b) / c.
6+
7+
:param x: First number (positional only, default 0)
8+
:param y: Second number (positional only, default 0)
9+
:param a: Third number (positional or keyword, default 1)
10+
:param b: Fourth number (positional or keyword, default 1)
11+
:param c: Fifth number (keyword only, default 1)
12+
:return: (x ** a + y ** b) / c
13+
"""
14+
15+
return (x ** a + y ** b) / c
16+
17+
18+

0 commit comments

Comments
 (0)