meld
This commit is contained in:
11
diff_test/math2.py
Normal file
11
diff_test/math2.py
Normal file
@@ -0,0 +1,11 @@
|
||||
def add(a, b):
|
||||
"""Zwraca sumę dwóch liczb całkowitych."""
|
||||
result = a + b
|
||||
return result
|
||||
|
||||
|
||||
def multiply(a, b):
|
||||
"""Zwraca iloczyn dwóch liczb. Zwraca 0, jeśli któraś jest None."""
|
||||
if a is None or b is None:
|
||||
return 0
|
||||
return a * b
|
||||
Reference in New Issue
Block a user