print >> syntax ขยาย print statement เพื่อพิมพ์ไปยัง file-like object แทน sys.stdout default
ตัวอย่าง
>>> my_file = open("my_file")
>>> print >> my_file, "Hello World"
จะเขียน "HelloWorld" ลง my_file ใช้กับ file-like objects อื่นได้
หมายเหตุ: เป็น syntax Python 2 เท่านั้น Python 3 ใช้ print("Hello", file=my_file)