Python printing to screen and writing to a file at the same time

You create a Python script. If you need print to screen and writing to a log file at the same time, you could use the under source code. Xem tiếp >> “Python printing to screen and writing to a file at the same time”