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.
this rocks
that's what's great about being able to see so many different solutions
Very cool. Solutions like this are opening up my mind to different thought processes.
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 was pretty eye-opening to me. I had no idea you could use multiplication with booleans like this. Thanks for the lesson!
This is what I did yay
wdym pink is not a traffic light color
somewhat similar I got
Brilliant stuff
This comment is hidden because it contains spoiler information about the solution
Short, simple and readable!
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?
FIRE!!! I love solutions like these! This is nasty af!
Simple, perfectly reaadable, industry-grade code. Too many people have an obsession with one-line returns.
Loading more items...