Editor

Simple Math

#3 · Python Basics · Beginner · 25 XP · about 2 min

Write a function called add(a, b) that takes two numbers and returns their sum.

Example

add(2, 3)   # Returns 5
add(-1, 1)  # Returns 0
add(0, 0)   # Returns 0

Requirements

  • The function should accept two parameters
  • Return the sum of the two numbers

Fastest solvers

Leaderboard

First solves only, ranked by stars and then time.