src/morse_code.py
def decode(string: str) -> str:
    """
        Decodes a string containing morse code into english, digits and punctuation symbols.
        
        ## Parameters
        ```py
        string: str # String to Decode.
        ```
    """
    
    split_str: List[str] = string.split(" ")
    result: str = ""
    
    for code in split_str:
        if code in LETTERS_VK:
            result += LETTERS_VK[code]
        elif code in NUMBERS_VK:
            result += NUMBERS_VK[code]
        elif code in PUNCTUATION_VK:
            result += PUNCTUATION_VK[code]
    
    return result

        Decodes a string containing morse code into english, digits and punctuation symbols.
        
        ## Parameters
        ```py
        string: str # String to Decode.
        ```
    
Decodes a string containing morse code into english, digits and punctuation symbols.
Parameters
```py
string: str # String to Decode.
Decodes a string containing morse code into english digits and punctuation symbols . Parameters ` ` ` py string : str # String to Decode .
def decode(string: str) -> str:
    split_str: List[str] = string.split(" ")
    result: str = ""
    for code in split_str:
        if code in LETTERS_VK:
            result += LETTERS_VK[code]
        elif code in NUMBERS_VK:
            result += NUMBERS_VK[code]
        elif code in PUNCTUATION_VK:
            result += PUNCTUATION_VK[code]
    return result
def decode ( string : str ) -> str : split_str : List [ str ] = string . split ( " " ) result : str = "" for code in split_str : if code in LETTERS_VK : result += LETTERS_VK [ code ] elif code in NUMBERS_VK : result += NUMBERS_VK [ code ] elif code in PUNCTUATION_VK : result += PUNCTUATION_VK [ code ] return result
Decodes a string containing morse code into english, digits and punctuation symbols.
Decodes a string containing morse code into english digits and punctuation symbols .
"""
        Decodes a string containing morse code into english, digits and punctuation symbols.
        
        ## Parameters
        ```py
        string: str # String to Decode.
        ```
    """
string
str