If you want to build something using a Raspberry Pi, you'll probably use resistors. For this exercise, you need to know only three things about them:
In resistor-color duo
you decoded the first two colors. For instance: orange-orange got the main value 33
.
The third color stands for how many zeros need to be added to the main value. The main value plus the zeros gives us a value in ohms.
For the exercise it doesn't matter what ohms really are.
For example:
(If Math is your thing, you may want to think of the zeros as exponents of 10. If Math is not your thing, go with the zeros. It really is the same thing, just in plain English instead of Math lingo.)
This exercise is about translating the colors into a label:
"... ohms"
So an input of "orange", "orange", "black"
should return:
"33 ohms"
When we get more than a thousand ohms, we say "kiloohms". That's similar to saying "kilometer" for 1000 meters, and "kilograms" for 1000 grams.
So an input of "orange", "orange", "orange"
should return:
"33 kiloohms"
Sign up to Exercism to learn and master Red with 20 exercises, and real human mentoring, all for free.