In Python, which of the following is an immutable data type?
- Dictionary
- List
- Set
- Tuple
The correct option is 4. Tuples are immutable in Python, meaning their elements cannot be changed after they are created.
Loading...
Related Quiz
- In Scikit-learn, ____ is the method used to train a model using the training data.
- When writing nested if statements, each new condition should be indented under the ______ statement.
- In Flask, the ____ object is used to store data that is accessible from all parts of an application.
- You are given a list of numbers and you need to find the two numbers that sum up to a specific target. Which algorithmic approach would you use to solve this problem efficiently?
- Which Python module provides functionality to read and write data in CSV format?