CBSE Class 12 Computer Science Question 26 of 105

Python Revision Tour II — Question 5

Back to all questions
5
Question

Question 5

What data type is the object below ?
L = [1, 23, 'hello', 1]

  1. list
  2. dictionary
  3. array
  4. tuple
Answer

list

Reason — A list can store a sequence of values belonging to any data type and they are depicted through square brackets.