cara menyimpan hasil python ke teks di ubuntu

$ python my_program.py > output.txt
Marton