Can someone explain how those curly braces work? I am new to python, and I have never seen something like that before.
I have a similar approach but I just use the core of rot13. It seems that I can't call the WORDS variable corrctly. My program is calling itself endless times because it can't find the ouput from rot13 in WORDS...
Rust translation. Please review and approve. Thanks!
Oh, am, gee
Look at that Fantomius, you've got over 100 up votes
hahahahaha :D This made my day :D
Link spans whole description width not only the picture, this probably should be changed.
Wow! Brilliant. Had to laugh when I saw the one-line solution appear on my screen.
Recognized the asterisk syntax from unpacking tuples and multiple function
arguments (but I repeat myself!)... it just never occurred to me it could be used
with other iterables as well. How silly of me!
To those who think this should be voted as Clever rather than Best Practices, isn't
this elementary Python syntax? We should all be familiar with it. Look how much
screen space it just saved.
If anyone is curious. This is called string format. String format is extremely versatile and you should check it out. To learn more, in the IDLE run the code >> help('FORMATTING')
This comment is hidden because it contains spoiler information about the solution
Description should make it EXPLICIT that not all words in the decoded message have to be included in the set. I wasted a lot of time wondering why I was failing anywhere from 12 to even just 1 random test. Even the solution I managed to pass the kata with occasionally fails 1 or 2 random tests.
The reason a static method is a static method is because it doesn't require self or cls.