Shell exec not working in codeigniter 3

$a = shell_exec('python tet.py');
echo $a;

print('hello WORLD!!')

no error using this code, but no string displayed. what should I do next?