- Convert/inverse leet code
- Convert/inverse morse code
- Convert/inverse roman code
Morse
>>> from leetehao import morse
>>> morse.encode('hello world')
'.... . .-.. .-.. --- / .-- --- .-. .-.. -..'
>>> morse.decode('.... . .-.. .-.. --- / .-- --- .-. .-.. -..')
'HELLO WORLD'
Leet
>>> from leetehao import leet
>>> leet.encode('hello world')
'}{[-[_[_() vv()[z[_|)'
>>> leet.decode('}{[-[_[_() vv()[z[_|)')
'HELLO WORLD'
Roman numerals
>>> from leetehao import roman
>>> roman.encode(2549)
'MMDXLIX'
>>> roman.decode('MMDXLIX')
2549
- Free software: BSD license