{
  "id": 8715855,
  "title": "lets explore data Structures in Python",
  "url": "https://urgent.news/2026/09/20/lets-explore-data-structures-in-python",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-09-20T15:33:24.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/steve_m/data-structures-in-python-1bhk"
  },
  "original_language": "en",
  "account": "Python is a popular programming language for data science, thanks to its versatile data structures. Four core data structures in Python include lists, tuples, dictionaries, and sets. These structures serve as the building blocks for data manipulation and analysis in Python.\n\nLists are one-dimensional arrays that can store elements of various types. They are mutable, meaning their contents can be altered after creation. A list is defined using square brackets, with elements separated by commas. For example, mixed_bag = [1, 2, 'bob'] creates a list containing integers, a string, and another list.\n\nSeveral functions are available to modify lists. The append() function adds an element to the end of a list, while the insert() function allows adding an element at a specific index. The extend() function enables adding multiple elements at once to the end of a list.\n\nAccessing data in a list involves indexing, where each element is assigned a unique position starting from 0. Positive indexing allows retrieving elements from the beginning of the list, while negative indexing enables accessing elements from the end, with -1 referring to the last element. Slicing allows extracting a portion of a list by specifying a start and stop index, with an optional step parameter to control the increment between selected elements.\n\nIn contrast to lists, tuples are immutable, meaning their contents cannot be changed once defined. Tuples are defined using parentheses, with elements separated by commas. Once a tuple is created, its values remain fixed, making them suitable for storing fixed data such as configuration settings or coordinates. For example, mixed_tuple = (1, 2, 'bob', 3) creates a tuple containing mixed data types.\n\nSimilar to lists, tuples also support indexing and slicing operations. Just like lists, tuples can be indexed using positive and negative numbers, with negative indexing allowing access from the end of the tuple. Slicing in tuples functions similarly to lists, enabling the extraction of specific sections of the tuple using start, stop, and step values.",
  "summary": "Introduction Data science begins with data, and how that data is stored determines how easily it can be cleaned, explored, and analyzed. Python is a data science tool tat anyone who is interested in data science would be wise to utilize. Python's four core data structures (lists, tuples, dictionaries, and sets) form the foundation for this work. Lists hold ordered collections such as a column of…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 2,
    "also_reported_by": [
      {
        "outlet": "Dev.to",
        "title": "Build an insider-buying screener with Python and SEC Form 4 data",
        "url": "https://urgent.news/2026/09/20/build-an-insider-buying-screener-with-python-and-sec-form-4-data",
        "published": "2026-09-20T09:52:13.000Z"
      }
    ]
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}