honestly didn't even know << was a thing lol
god damn this is awesome. Best way to learn, solve and then look at other solutions after to see what I did well and what couold have been done better
I have included the phonetic alphabet, like in other langauges, but mentioned this in the description.
Consider adding a sample test with punctuation inside
It's not obvious that there's a preloaded dictionary in some languages, specify that in the instructions
Not able to submit the kata even after all the test cases got passed, please help... Sorry new to codewars...
For python there is a NATO dictionary already.
Can I suggest you print it out in the demo program, it'll save people typing out the whole dictionary.
We think a like.
Very fun kata - little programs like this remind me to appreciate the value of programming :)
I learned a lot of interesting things! Here is a link for automatic translation http://www.radiospelling.com
Some errors with random tests for Python:
Traceback (most recent call last):
File "main.py", line 24, in
File "main.py", line 17, in randtest
Test.assert_equals(to_nato("".join(strIn)), " ".join(strOut))
great kata folks, enjoyed so much
I really had go time doing this! I wish we had a reverse KATA version of this exercise!
PHP is using Juliet instead of Juliett. If you fix it, it'll probably break current solutions. So I think adding a note about that particular quirk in the instructions is better. And so I did (only for PHP version).
Reference image is broken.
Shouldn't the NATO hash (dictionary/object) be available in all languages?
It's Juliett with double t at the end. Nothing broken.