निम्नलिखित ऑब्जेक्ट का डेटा प्रकार क्या है?
What is the data type of following object ?
A = [5,‟abc‟,3.2,6] A
tuple
B
array
C
list
D
dictionary
Explanation
The correct answer is:
(C) list
Explanation:
- The object
A = [5, 'abc', 3.2, 6]is enclosed in square brackets[], which denotes a list in Python. - A list can hold items of various data types, such as integers, strings, and floating-point numbers, as seen in the example.
Output:
(C) list
Correct Answer: C) list