Signature
Test Code
Description
This problem has been deleted.
Submit a Solution
Fastest Solutions
def solution():
# All the input for this problem is read internally and the output is printed.
# There’s nothing to pass in; the grader just calls solution() and checks stdout.
pass
def add(a, b):
return a + b
# Tests
assert add(1, 2) == 3
assert add(-1, 1) == 0
assert add(0, 0) == 0
New Solutions
def solution():
# All the input for this problem is read internally and the output is printed.
# There’s nothing to pass in; the grader just calls solution() and checks stdout.
pass
def add(a, b):
return a + b
# Tests
assert add(1, 2) == 3
assert add(-1, 1) == 0
assert add(0, 0) == 0