Skip to content

Commit f08019c

Browse files
authored
Modify custom_equation defaults and global calls
Updated default parameter values for custom_equation function and fixed global variable declaration.
1 parent c4660b8 commit f08019c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Week04/functions_zeynepnur_erten.py

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

44

5-
def custom_equation(x: int , y: int , /, a: int, b: int , * , c: int) -> float :
5+
def custom_equation(x: int = 0 , y: int = 0 , /, a: int = 1, b: int=1 , * , c: int = 1) -> float :
66
"""
77
This function returns the result of an operation based on the specified base and exponent values.
88
@@ -18,7 +18,7 @@ def custom_equation(x: int , y: int , /, a: int, b: int , * , c: int) -> float
1818

1919
calls = 0
2020
def fn_w_counter()->(int, dict[str, int]):
21-
global calls,
21+
global calls
2222
calls += 1
2323
return calls, {__name__: calls }
2424

0 commit comments

Comments
 (0)