def toText(morse):
    global chars
    global morseCode
    morse = morse.split(' ')
    for char in range(len(morse)):
        if (morse[char] == '/'):
            morse[char] = ' '
        else:
            index = morseCode.index(morse[char])
            morse[char] = chars[index]
    morse = ''.join(morse)
    return morse
def toText(morse):
    global chars
    global morseCode
    morse = morse.split(' ')
    for char in range(len(morse)):
        if (morse[char] == '/'):
            morse[char] = ' '
        else:
            index = morseCode.index(morse[char])
            morse[char] = chars[index]
    morse = .join(morse)
    return morse