Which of the following functions print the output to the console ? a) Output( ) b) Print( ) c) Echo( ) d) print( )
Answers
Answer:
b) Print( )
Explanation:
scanf() and printf() functions The standard input-output header file, named stdio. h contains the definition of the functions printf() and scanf() , which are used to display output on screen and to take input from user respectively.
print() function will print the output to the console.
Extra Information
Examples of print() statement
print("Hello World")
Output
Hello World
print(5/2)
Output
2.5
x = ("apple", "banana", "cherry")
print(x)
Output
('apple', 'banana', 'cherry')
Python is created by Guido van Rossum and came into existence in 1991. It is a high-level and general programming language. It is a very lucid programming language as it has a good language construct and object-oriented approach. It is dynamically typed and garbage-collected.