01Add Two Numbers

    Very easyfunctionsmath

    Write a function add(a, b) that returns the sum of the two numbers it receives.

    Returning is different from printing: the tests read the value your function gives back with return.

    Examples

    Example 1
    >>> add(2, 3)
    5
    Example 2
    >>> add(-1, 1)
    0

    Run examples checks the 2 examples above. Submit runs all 5 tests, including hidden edge cases, and marks the challenge solved.

    solution.py
    Loading Python…

    Test results show up here

    Write add in the editor, then run the examples. Use print() freely: its output is shown for each test.