Output Using Python

Is there a different way to output other than print when using Python3

you can make a shorthand for sys.stdout.write and use that for output.

import sys
write = sys.stdout.write
write(ā€˜20ā€™)
write(ā€˜05\nā€™)

see http://en.wikibooks.org/wiki/Python_Programming/Input_and_output

1 Like