print console sys.stdout

print console sys.stdout 4

sys.stdout = open(“test.txt”, “w”) print(“Hello World”) sys.stdout.close() # TEST.TXT: # Hello World Here is what the above code is Doing: …

Read more