Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can use:

  from __future__ import print_function
And then print() should work as expected in Python 2.6+. That is, print(1, 2, 3) will print '1 2 3' instead of '(1, 2, 3)'.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: