Print! Print! Print !, Print
Print statements can be printed, which is only an interface that is friendly to programmers for standard output streams.
Technically, this is to convert one or more objects into their text expressions and then send them to the standard output or another stream similar to a file.
In more detail, in Python, printing is closely linked to the concepts of files and streams.
File object Method
By default, print adds automatic formatting to the stdout stream. Unlike the file method, you do not need to convert an object to a string when using the print operation.
Standard output stream
The standard output stream (stdout) is only the default place for sending the text output of a program. With the standard input stream and error stream added, it is only one of the three data connections created when the script starts.
In Python 2.x, printing is a statement with its own specific syntax.
Print x, y print x, y, print> afile, x, y (send text to myfile. write)
In Python 3. X, printing is a built-in function that uses keyword parameters to represent a specific mode.
Print ([object,...] [, sep = ''] [, end = '\ n'] [, file = sys. stdout])
Print (X, Y) is equivalent
Import sys
Sys. stdout. write (str (X) + ''+ str (Y) + '\ n ')
It manually performs a String Conversion through str, adds a separator and a line break through "+", and calls the write method of the output stream.