1- custom_power = lambda x = 0 , / , e = 1 : x ** e
1+ custom_power = lambda x = 0 , / , e = 1 : x ** e
22
33
4- def custom_equation (x = 0 , y = 0 , / , a = 1 , b = 1 , * , c = 1 ) -> float :
4+ def custom_equation (x : int = 0 , y : int = 0 , / , a : int = 1 , b : int = 1 , * , c : int = 1 ) -> float :
55 """
6- This function adds the b power of the y variable to the a power of the x variable. Divides the result by variable c.
6+ This function adds the b power of the y variable to the a power of the x variable. Divides the result by variable c.
77
88 :param x: First base number, default is 0
9+ :type x: int
910 :param y: Second base number, default is 0
11+ :type y: int
1012 :param a: First exponent number, default is 1
13+ :type a: int
1114 :param b: Second exponent number, default is 1
15+ :type b: int
1216 :param c: Division number, default is 1
17+ :type c: int
1318 :return: Returns the result of the equation as a float
1419 :rtype: float
1520
1621 """
17- return ( x ** a + y ** b ) / c
22+ return float (( x ** a + y ** b ) / c )
1823
1924
20- def fn_w_counter ():
25+ def fn_w_counter () -> ( int , dict [ str , int ]) :
2126 if not hasattr (fn_w_counter , "counter" ):
2227 fn_w_counter .counter = 0
2328 fn_w_counter .caller_info = {}
@@ -34,3 +39,6 @@ def fn_w_counter():
3439
3540
3641
42+
43+
44+
0 commit comments