From da3a66f01d7c8802548a28686f1e196f75917ebb Mon Sep 17 00:00:00 2001 From: Joeyleebm Date: Wed, 27 Nov 2024 09:41:17 +0800 Subject: [PATCH] Update instructions.md --- .../practice/resistor-color-duo/.docs/instructions.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/exercises/practice/resistor-color-duo/.docs/instructions.md b/exercises/practice/resistor-color-duo/.docs/instructions.md index 4ae694da02..f6af7b203d 100644 --- a/exercises/practice/resistor-color-duo/.docs/instructions.md +++ b/exercises/practice/resistor-color-duo/.docs/instructions.md @@ -31,3 +31,11 @@ The band colors are encoded as follows: From the example above: brown-green should return 15, and brown-green-violet should return 15 too, ignoring the third color. + +```python +>>> value(['brown','green']) +15 + +>>> value(['violet','white']) +79 +```