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

Function decode

ciphers/a1z26.py:20–25  ·  view source on GitHub ↗

>>> decode([13, 25, 14, 1, 13, 5]) 'myname'

(encoded: list[int])

Source from the content-addressed store, hash-verified

18
19
20def decode(encoded: list[int]) -> str:
21 """
22 >>> decode([13, 25, 14, 1, 13, 5])
23 'myname'
24 """
25 return "".join(chr(elem + 96) for elem in encoded)
26
27
28def main() -> None:

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected