Перевести на python type tarray = array[0..19] of real; procedure randomarray(var ar: tarray; const mes: string); var k: byte; begin write(mes, ': '); for k : = 0 to 19 do begin ar[k] : = random() * 198 - 99; write(ar[k]: 7: 2); end; writeln; end; function sumxy(const x, y: tarray): double; var k: byte; s: double; begin s : = 0; for k : = 1 to 15 do s : = s + x[k] * y[k]; sumxy : = s; end; function p(const z: tarray): double; var k: byte; s: double; begin s : = 0; for k : = 0 to 19 do s : = s + sqr(z[k]); p : = s; end; var x, y: tarray; begin randomize(); randomarray(x, 'x'); randomarray(y, 'y'); if (sumxy(x, y) > 0) then write('p(x)=', p(x): 0: 3) else write('p(y)=', p(y): 0: 3); end.