You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Technically, it's the same resistor. While I understand that intuitively I should know that gold is a tolerance value and therefore should come last, beginners may not realize this. Would it be possible to check the reverse before erroring out? Perhaps printing a message like "Hint: You got it backwards" for educational purposes?
Great little project! Way easier than looking up yet another website, so I'm definitely adding this to my toolbox. π€
The text was updated successfully, but these errors were encountered:
This is a great idea. So when an error is encountered during resistor band decoding, the decoding function is again called but with the inputted bands in reverse order. If this decoding was correct, an additional hint is displayed in the error message:
error: band Gold is not allowed as a digit (hint: try reversing the band order)
If this reversed decoding was also an error, the user just entered an illegal resistor color code combination and the original error will be displayed.
Cool project! I typed some band colors in backwards, just for fun.
Technically, it's the same resistor. While I understand that intuitively I should know that gold is a tolerance value and therefore should come last, beginners may not realize this. Would it be possible to check the reverse before erroring out? Perhaps printing a message like "Hint: You got it backwards" for educational purposes?
Great little project! Way easier than looking up yet another website, so I'm definitely adding this to my toolbox. π€
The text was updated successfully, but these errors were encountered: