Level 1: Basic Inputs

In this section, you will find a step by step to manipulate basic inputs on Ritchie.


Create a formula on Ritchie that will sum two positive numbers.

Command suggestion: rit math sum numbers


This formula needs to contain (at least) those two inputs parameters:

  • Number one (NUMBER_ONE).

  • Number two (NUMBER_TWO).

Step by step

The formula needs to follow the next steps:

  1. Extract all inputs parameters.

  2. Convert inputs to integers (there is currently no integer type in inputs config.json file).

  3. Sum both numbers.

  4. Return the result on the terminal.

Well done! You've completed the first task!

Improvement suggestions

If you want to play a little more, here are some suggestions:

  • Add a validation of the input parameters to return an error to the user if the parameter is not an integer.

  • Allows the user to sum negative numbers with positive ones.

  • Allows the user to digit decimals in addition to integers.

  • Allows the user to choose between several operations to manipulate the 2 numbers (addition, multiplication, division).

Next steps

👉 If you've completed the first challenge, let's go to the level 2 task!