Skip to content
Advertisement

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

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?

Advertisement

Answer

sys.stdout.write("hello worldn")
Advertisement