Computer Science
To store values in terms of key and value, what core data type does Python provide ?
- list
- tuple
- class
- dictionary
Python Dictionaries
2 Likes
Answer
dictionary
Reason — Dictionaries are mutable with elements in the form of a key:value pair that associate keys to values.
Answered By
1 Like
Related Questions
What data type is the object below ?
L = [1, 23, 'hello', 1]- list
- dictionary
- array
- tuple
What data type is the object below ?
L = 1, 23, 'hello', 1- list
- dictionary
- array
- tuple
What is the value of the following expression ?
3 + 3.00, 3**3.0- (6.0, 27.0)
- (6.0, 9.00)
- (6, 27)
- [6.0, 27.0]
- [6, 27]
List AL is defined as follows : AL = [1, 2, 3, 4, 5]
Which of the following statements removes the middle element 3 from it so that the list AL equals [1, 2, 4, 5] ?- del AL[2]
- AL[2:3] = []
- AL[2:2] = []
- AL[2] = []
- AL.remove(3)