I want to write "print 'hello'" to a bunch of *.py files in the same directory. How do you do that? I've searched all over the Web and SO, and I can't find out how.
Like in pseudo-code, "all files with *.py in a certain directory, open and write 'print 'hello'', close file".
I'm sorry, I'm a n00b, I just started learning Python.