Computer Science

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

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

Python Tuples

4 Likes

Answer

tuple

Reason — For creating a tuple, enclosing the elements inside parentheses is optional. Even if parentheses are omitted as shown here, still this statement will create a tuple.

Answered By

1 Like


Related Questions