In Python, print() is an example of:
(1 point)
Responses
a function.
a function.
a directive.
a directive.
an assignment.
an assignment.
a recipe.
The correct answer is: a function.
In Python, `print()` is an example of a function (1 point).
In Python, `print()` is an example of a function.
To determine the answer, it is helpful to have some basic understanding of Python syntax and terminology.
A function in Python is a block of reusable code that performs a specific task. It can have input parameters, perform operations, and return a result. Functions are used to organize code into smaller, manageable pieces and to avoid repetitive work.
To confirm that `print()` is a function, you can look for the presence of parentheses after the word `print`. In Python, parentheses are used to indicate that a function is being called or executed.
Here's an example of using the `print()` function:
```python
print("Hello, World!")
```
When this code is run, it will display the string "Hello, World!" as output.
Therefore, the correct answer is: `print()` is an example of a function.