Robotics & Artificial Intelligence
Given My_Data = [12, 25, 'Hello', "World"]
What data type is the representation of the above object?
- list
- dictionary
- array
- tuple
Python Funda
2 Likes
Answer
list
Reason — The elements are enclosed within square brackets [ ] and contain data items of different types (integers and strings) separated by commas, which represents a list in Python.
Answered By
1 Like
Related Questions
Which of the following data type would be used for a variable to store the value 3.14 in Python?
- int
- decimal
- double
- float
Which of the following data types would be used in Python to store values in terms of key and value?
- list
- tuple
- dictionary
- String
Which of the following is a mutable data type in Python?
- Strings
- Tuples
- Lists
- Integers
Which of the following data types does not allow duplicate values in Python?
- Lists
- Dictionaries
- Tuples
- Sets