Spool Python script exection (.py ) to a output file | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Spool Python script exection (.py ) to a output file

can anyone share how to Spool Python script to a file of the print and return commands in the script

6th Dec 2016, 12:33 PM
Shrideepak K S
Shrideepak K S - avatar
1 Answer
0
you redirect the standard output to your given file and intercept the results befor you return them
26th Dec 2016, 11:54 PM
Amaras A
Amaras A - avatar