diff --git a/Week04/custom_equation_gamze_kilinc.py b/Week04/custom_equation_gamze_kilinc.py new file mode 100644 index 00000000..73db232f --- /dev/null +++ b/Week04/custom_equation_gamze_kilinc.py @@ -0,0 +1,20 @@ +def custom_equation( + x: int = 0, + y: int = 0, + /, + a: int = 1, + b: int = 1, + *, + c: int = 1 +) -> float: + """ + Calculates a custom mathematical equation. + + :param x: First positional-only integer value. + :param y: Second positional-only integer value. + :param a: Exponent for x. + :param b: Exponent for y. + :param c: Divisor value. + :return: The result of (x**a + y**b) / c as a float. + """ + return (x ** a + y ** b) / c