Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
The string is refering to itself. "This" i.e. this string, "is not a traffic light color." - this is to alert the traffic light not to attempt to turn on the color described by the string, because the string "This is not a traffic light color" does not describe uniquely a traffic light color, and the result may be unexpected, and perhaps even detrimental to the traffic light.
This is what I did yay
wdym pink is not a traffic light color
The dictionary method needs to instantiate a "useless" dictionary. This one does not.
The dictionary method isn't hard to read though, as long as you know what a dictionary is. Also, isn't it faster?
Simple, perfectly reaadable, industry-grade code. Too many people have an obsession with one-line returns.
Wow..this is not a traffic light
It's readable, even by the janitor?
awful, disgusting and unheardof, Diamonds should be ashamed of this
How is this considered best practice?