Computer Science, asked by divyasoni87ds, 4 months ago

What is the use of print () function in python? Explain with example​

Answers

Answered by sruti1212
5

Answer:

I hope it was helpful and right

Explanation:

Definition and Usage

The print() function prints the specified message to the screen, or other standard output device.

The message can be a string, or any other object, the object will be converted into a string before written to the screen.

Syntax

print(object(s), sep=separator, end=end, file=file, flush=flush)

Parameter Values

Parameter Description

object(s) Any object, and as many as you like. Will be converted to string before printed

sep='separator' Optional. Specify how to separate the objects, if there is more than one. Default is ' '

end='end' Optional. Specify what to print at the end. Default is '\n' (line feed)

file Optional. An object with a write method. Default is sys.stdout

flush Optional. A Boolean, specifying if the output is flushed (True) or buffered (False). Default is False

More Examples

Example

Print more than one object:

print("Hello", "how are you?")

Answered by utsabarai5
0

Answer:

prints a hard copy of the current drawing to any available printer.

Explanation:

The Print function prints a hard copy of the current drawing to any available printer. Printer configuration is entirely dependent upon the type of printer you have connected, and the Print dialog box is generated by your printer driver software (a typical example of this dialog box is shown at right).

Similar questions