TestDrivenCode.com
Contact
Privacy Policy
Terms of Service
Signup
Login
▲
0
▼
Add two numbers
by
Tom
Signature
def add(a, b):
Test Code
assert add(1, 2) == 3 assert add(-1, 1) == 0 assert add(0, 0) == 0
Submit a Solution
def add(a, b):
Terms of Service
and
Privacy Policy
Submit Solution
and accept Terms of Service and Privacy Policy
Fastest Solutions
▲
0
▼
Solution
by
Tom
(0.1 seconds)
def add(a, b): return a + b
New Solutions
▲
0
▼
Solution
by
Tom
(0.1 seconds)
def add(a, b): return a + b