What is the print() function good for in Python?
Experience Level: Junior
Tags: Python
Answer
The print() function prints the specified message to the screen, or other standard output device (stdout).
Example:
# this prints 'Hello world'
print("Hello world")
Related Python job interview questions
How do you find out in what folder is the Python imported module stored?
Python JuniorWhen would you use the print() function in Python?
Python JuniorHow do you obtain a value of search path in Python?
Python JuniorWhat is a module search path in Python?
Python JuniorWhat is the import statement good for in Python?
Python Junior