Robotics & Artificial Intelligence
Which of the following is a mutable data type in Python?
- Strings
- Tuples
- Lists
- Integers
Python Funda
2 Likes
Answer
Lists
Reason — Lists in Python are mutable, meaning their elements can be altered, added, or removed after the list is created. Strings, tuples and integers are immutable in Python.
Answered By
2 Likes
Related Questions
Which of the following data types would be used in Python to store values in terms of key and value?
- list
- tuple
- dictionary
- String
Given
My_Data = [12, 25, 'Hello', "World"]What data type is the representation of the above object?
- list
- dictionary
- array
- tuple
Which of the following data types does not allow duplicate values in Python?
- Lists
- Dictionaries
- Tuples
- Sets
Boolean data is used to test a particular condition i.e., True or False.
Which of the following is the correct representation?
- boolean m=True
- boolean m='True'
- boolean m="True"
- none of them