Перевести программу из паскаля в питон var a,b,c: word; s0,s1,s2,t0,t1,t2,d0,d1,d2: byte; begin //параметры гаммы шифра: a: =5; b: =1; c: =256; //гамма шифра: s0: =21; s1: =(a*s0+b) mod c; //106 s2: = (a*s1+b) mod c; //19 //гаммирование (шифровка) текста abc: t0: =ord('a')xor s0; //84 t1: =ord('b')xor s1; //40 t2: =ord('c') xor s2; //80 writeln('gamma s: ',s0: 4,s1: 4,s2: 4); //21 106 19 writeln('source text: abc'); writeln('text ascii: 65,66,67'); writeln('criptotext t: ',t0: 4,t1: 4,t2: 4); //84 40 80 //дешифровка текста: d0: = t0 xor s0; //65 d1: =t1 xor s1; //66 d2: =t2 xor s2; //67 writeln('decipher text: ',chr(d0),chr(d1),chr(d2)); //abc readln; end.