print >>
is not supported by Python 3.
To enter a file with a print, see
from__future__import print_function #Required under Python 2.6
...
print("hello", file=f)
in the same way as
If you don't use print,
f.write("hello\n")
is present.
© 2024 OneMinuteCode. All rights reserved.