Ad
  • Custom User Avatar
  • Custom User Avatar

    Thanks @jdog and @ccrino .

    I already understand the time step. Thanks to you both.

  • Custom User Avatar

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

  • Default User Avatar

    M is -- and I is .., so I assume the M/I thing is the next test along failing after the E / T thing.

  • Default User Avatar

    The instructions were to ignore leading and trailing zeroes. When you do that the time signature for the first one is singular, for the second it's tripled.

  • Custom User Avatar

    Still there's the same problem with Python3, there's print() expression issue in test,
    as well as another one i get, if needed:
    Traceback (most recent call last):
    File "main.py", line 14, in
    testAndPrint(decodeMorse(decodeBits('1')), 'E')
    File "/home/codewarrior/solution.py", line 6, in decodeMorse
    return ' '.join(''.join(MORSE_CODE[letter] for letter in word.split(' ')) for word in morseCode.strip().split(' '))
    File "/home/codewarrior/solution.py", line 6, in
    return ' '.join(''.join(MORSE_CODE[letter] for letter in word.split(' ')) for word in morseCode.strip().split(' '))
    File "/home/codewarrior/solution.py", line 6, in
    return ' '.join(''.join(MORSE_CODE[letter] for letter in word.split(' ')) for word in morseCode.strip().split(' '))
    KeyError: '1'

  • Custom User Avatar

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