Print Function in Python

The print() function prints the given object to the standard output device (screen) or to the text stream file.

Example:

Python

message = 'Hello Ashish!'
# print the string message
print(message)

The output of the above code is shown below: Hello Ashish!