Computer Science
What data type is the object below ?
L = [1, 23, 'hello', 1]
- list
- dictionary
- array
- tuple
Python Dictionaries
6 Likes
Answer
list
Reason — A list can store a sequence of values belonging to any data type and they are depicted through square brackets.
Answered By
1 Like
Related Questions
The keys of a dictionary must be of …………… types.
- integer
- mutable
- immutable
- any of these
Following set of commands is executed in shell, what will be the output?
>>>str = "hello" >>>str[:2] >>>
- he
- lo
- olleh
- hello
What data type is the object below ?
L = 1, 23, 'hello', 1- list
- dictionary
- array
- tuple
To store values in terms of key and value, what core data type does Python provide ?
- list
- tuple
- class
- dictionary