some other challenges
This commit is contained in:
15
transformation/sol.py
Executable file
15
transformation/sol.py
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
with open("enc", "r") as f:
|
||||
while True:
|
||||
char = f.read(1)
|
||||
if not char:
|
||||
break
|
||||
c = ord(char)
|
||||
char_1 = chr(c >> 8)
|
||||
char_2 = chr(c%(2**8))
|
||||
print(char_1, end='')
|
||||
print(char_2, end='')
|
||||
|
||||
print('\n')
|
||||
|
||||
Reference in New Issue
Block a user