Computer Science, asked by ta616209, 2 months ago

what is a print () function discuss? it with syntax
(6 marks)​

Answers

Answered by goldenwind
1

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)

Example:

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

—————————————————————

hope it was helpful! mark me as brainliest if you'd like to <3

Answered by Anonymous
2

print() function in Python displays the message as per the written program. It's parameters are sep, end and object(s)

You can print any data type i.e int, float and string, depends on the program.

(not necessarily strings)

Syntax:

print("Hello world")

It will print Hello world

print(2*3)

It will print 6

Similar questions