On Tue, 25 Feb 2003 08:57:20 GMT, Alex Martelli <aleax at aleax.it> wrote: >Hilbert wrote: > >> Hello, >> >> Why does the following result in an error? >> >> f = file("welcome.txt","w") >> print "hello", >> f > >Because the "print>>BAH" syntax is all wacko. You >need to code: > print >> f, "hello" why not f.write("hello") ?