17 lines
309 B
Python
Executable File
17 lines
309 B
Python
Executable File
#!/home/maxime/.pyvenv/bin/python3
|
|
import sys
|
|
chars = "test"
|
|
|
|
lookup1 = "\n \"#()*+/1:=[]abcdefghijklmnopqrstuvwxyz"
|
|
lookup2 = "ABCDEFGHIJKLMNOPQRSTabcdefghijklmnopqrst"
|
|
|
|
out = ""
|
|
|
|
prev = 0
|
|
for char in chars:
|
|
cur = lookup1.index(char)
|
|
out += lookup2[(cur - prev) % 40]
|
|
prev = cur
|
|
|
|
sys.stdout.write(out)
|