Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    There are multiple "morse code" katas already on CW... *sigh*

    Notes for ruby and python:

    • do not use Test.expect, use Test.assert_equals instead
    • use snake_case for the function names: translate_to_morse instead of translateToMorse
    • add this to keep old solutions valid:
    # for python
    try:
        translate_to_morse = translateToMorse
        translate_to_text = translateToText
    except NameError:
        pass