if you want to save your outputs in your screen
but u also want to see it in your screen.you can do like this.we touch a hello.py and write
print("hello world“)
then you type the command in your shell
python hello.py | tee $(date+%Y%m%d).txt
then you will see the terminator’s result is like this.
“hello”
your you will get a file named after the date now .
That’s cool.Hope enjoy it.