KnowledgeBoat Logo
|

Robotics & Artificial Intelligence

Given My_Data = [12, 25, 'Hello', "World"]

What data type is the representation of the above object?

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

Python Funda

3 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

2 Likes


Related Questions