MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / decrypt

Function decrypt

ciphers/morse_code.py:35–40  ·  view source on GitHub ↗

>>> decrypt('... --- ... -.-.--') 'SOS!'

(message: str)

Source from the content-addressed store, hash-verified

33
34
35def decrypt(message: str) -> str:
36 """
37 >>> decrypt('... --- ... -.-.--')
38 'SOS!'
39 """
40 return "".join(REVERSE_DICT[char] for char in message.split())
41
42
43def main() -> None:

Callers 1

mainFunction · 0.70

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected