Is it possible to print without using the print function in Python?

Tags: , ,



I wondered whether it is possible to print (for example a string) in Python without the print function. This can be done by a command or by some trick.

For example, in C there are printf and puts.

Can someone show me a way to print or to deny this possibility?

Answer

sys.stdout.write("hello worldn")


Source: stackoverflow