Computer Science

Identify the valid declaration of L:

L = [1, 23, 'hi', 6]
  1. list
  2. dictionary
  3. array
  4. tuple

Python List Manipulation

2 Likes

Answer

list

Reason — The given declaration L = [1, 23, 'hi', 6] creates a list in Python. Lists are created using square brackets [] and can contain elements of different data types, including integers, strings, and other lists.

Answered By

3 Likes


Related Questions