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 Python Programming/Input and Output - Wikibooks, open books for an open world

1 Like