python コマンドを実行するときに -c オプションを指定すると、ワンライナーで Python プログラムを実行できます。
python
-c
$ python -c "print('Hello')" Hello