Skip to content

Commit 58ace8f

Browse files
committed
Fix some typos and improve some wordings
1 parent 59541f0 commit 58ace8f

4 files changed

Lines changed: 13 additions & 10 deletions

File tree

exercises/practice/resistor-color-expert/.docs/instructions.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,46 +34,46 @@ The tolerance band will have one of these values:
3434

3535
The four-band resistor is built up like this:
3636

37-
| Band_1 | Band_2 | Band_3 | band_4 |
37+
| Band_1 | Band_2 | Band_3 | Band_4 |
3838
| ------- | ------- | ---------- | --------- |
3939
| Value_1 | Value_2 | Multiplier | Tolerance |
4040

4141
Examples:
4242

4343
- orange-orange-brown-green would be `330` ohms with a `±0.5%` tolerance.
44-
- orange-orange-red-grey would be `3300` ohms with `±0.05%` tolerance.
44+
- orange-orange-red-grey would be `3300` ohms with a `±0.05%` tolerance.
4545

4646
The difference between a four and five-band resistor is that the five-band resistor has an extra band to indicate a more precise value.
4747

48-
| Band_1 | Band_2 | Band_3 | Band_4 | band_5 |
48+
| Band_1 | Band_2 | Band_3 | Band_4 | Band_5 |
4949
| ------- | ------- | ------- | ---------- | --------- |
5050
| Value_1 | Value_2 | Value_3 | Multiplier | Tolerance |
5151

5252
Examples:
5353

5454
- orange-orange-orange-black-green would be `333` ohms with a `±0.5%` tolerance.
55-
- orange-red-orange-blue-violet would be `323M` ohms with a `±0.10` tolerance.
55+
- orange-red-orange-blue-violet would be `323 million` ohms with a `±0.1%` tolerance.
5656

5757
There are also one band resistors.
5858
One band resistors only have the color black with a value of 0.
5959

6060

6161
Your program should translate an input `list` of resistor band colors into a label:
6262

63-
"... ohms ...%"
63+
"... ohms ±...%"
6464

6565
So an input `list` of `["orange", "orange", "black", "green"]` should return:
6666

6767
"33 ohms ±0.5%"
6868

69-
When there are more than a thousand ohms, we say "kiloohms".
70-
That's similar to saying "kilometer" for 1000 meters, and "kilograms" for 1000 grams.
69+
When there are thousands of ohms, we say "kiloohms".
70+
That's similar to saying "kilometer" for 1000 meters, and "kilograms" for 1000 grams.
7171

7272
So an input `list` of `["orange", "orange", "orange", "grey"]` should return:
7373

7474
"33 kiloohms ±0.05%"
7575

76-
When there are more than a million ohms, we say "megaohms".
76+
When there are millions of ohms, we say "megaohms".
7777

7878
So an input `list` of `["orange", "orange", "blue", "red"]` should return:
7979

exercises/practice/resistor-color-expert/.docs/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ If you want to build something using a Raspberry Pi, you'll probably use _resist
44
Like the previous [`Resistor Color Duo`][resistor-color-duo-exercise] and [`Resistor Color Trio`][resistor-color-trio-exercise] exercises, you will be translating resistor color bands to human-readable labels.
55

66
- Each resistor has a resistance value.
7-
- Resistors are small - so small in fact that if you printed the resistance value on them, it would be hard to read.
7+
- Resistors are small so small in fact that if you printed the resistance value on them, it would be hard to read.
88
To get around this problem, manufacturers print color-coded bands onto the resistors to denote their resistance values.
99
- Each band acts as a digit of a number.
1010
For example, if they printed a brown band (value 1) followed by a green band (value 5), it would translate to the number 15.

exercises/practice/resistor-color-expert/.meta/config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
"meatball133",
44
"bethanyg"
55
],
6+
"contributors": [
7+
"yrahcaz7"
8+
],
69
"files": {
710
"solution": [
811
"resistor_color_expert.py"

exercises/practice/resistor-color-expert/.meta/example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ def color_code(color):
4646
elif color < 1000000:
4747
return color / 1000, 'kiloohms'
4848
else:
49-
return color / 1000000, 'megaohms'
49+
return color / 1000000, 'megaohms'

0 commit comments

Comments
 (0)