← Back to challenges

Return the Next Number from the Integer Passed

PythonEasymathnumbersalgebra

Instructions

Create a function that takes a number as an argument, increments the number by +1 and returns the result.

Examples

addition(0) ➞ 1

addition(9) ➞ 10

addition(-3) ➞ -2

Notes

  • Don't forget to return the result.
  • If you get stuck on a challenge, find help in the Resources tab.
  • If you're really stuck, unlock solutions in the Solutions tab.
python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Convert Minutes into Seconds