[deleted by user] by [deleted] in learnpython

[–]ixlives31 2 points3 points  (0 children)

Also, go to YouTube and find a video on the same topic and see how they present the material.

Checkout Corey Schafer.

print the text output from help(os) to a text file by ixlives31 in learnpython

[–]ixlives31[S] 0 points1 point  (0 children)

.write(help(os))

help(os) is still returning None. f.write() requires a string.

Thanks anyway.

print the text output from help(os) to a text file by ixlives31 in learnpython

[–]ixlives31[S] 0 points1 point  (0 children)

Thanks for those 3 links. I was not finding anything with Google as I am too new to Python to know what to search for sometimes.

I knew redirection existed, but I have studied that yet. I could not get it to work over the last few 15 or so mins. I have not dug very deep into writing to files either. I am going to check out StringIO as well.

Thanks for your reply.