188k views
4 votes
Which function is used to display a string value to the screen?

main[]
print()
run=
SHOW!

2 Answers

2 votes

Answer:

in python print()

User Mattis Asp
by
4.9k points
4 votes

Answer:

The correct answer to this question is given below in the explanation section.

Step-by-step explanation:

in most programming languages, the print() function is used to display a string value to the screen. Because, the print function prints all the string given in it as a parameter.

for example: to print hello world.

we use the function to print hello world as print("hello world").

However, it noted that other options are not correct because the main() function is an entry point of a program and it does not print string value to the screen. while run and show function do not print string value of screen also.

User Nico Haase
by
5.8k points