PyText?!.

From Esolang
Jump to navigation Jump to search
PyText?!
Paradigm(s) substitution cipher
Designed by Zayne
Appeared in 2017
Memory system none
Dimensions one-dimensional
Computational class total
Reference implementation see page
Influenced Noid
File extension(s) unknown

PyText?!. is the predecessor to Noid. This language is also created by Zayne on April 22nd 2017
Sadly it is very buggy because instead of converting it correctly everything converts to a! so Noid fixed them

Implementation

import os
s = open(input("Run Script: "), 'r').read()
s = s.replace('.>', 'a')
s = s.replace('..>', 'b')
s = s.replace('...>', 'c')
s = s.replace('!.>', 'd')
s = s.replace('!..>', 'e')
s = s.replace('!...>', 'f')
s = s.replace('!!.>', 'g')
s = s.replace('!!..>', 'h')
s = s.replace('!!...>', 'i')
s = s.replace('?.>', 'j')
s = s.replace('?..>', 'k')
s = s.replace('?...>', 'l')
s = s.replace('??.>', 'm')
s = s.replace('??..>', 'n')
s = s.replace('??...>', 'o')
s = s.replace(';.>', 'p')
s = s.replace(';..>', 'q')
s = s.replace(';...>', 'r')
s = s.replace(';;.>', 's')
s = s.replace(';;..>', 't')
s = s.replace(';;...>', 'u')
s = s.replace(':.>', 'v')
s = s.replace(':..>', 'w')
s = s.replace(':...>', 'x')
s = s.replace('::.>', 'y')
s = s.replace('::..>', 'z')
s = s.replace('::...>', '1')
print("Result is ", s)