{
  "cells": [
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "# \n",
        "\n",
        "1."
      ],
      "id": "cbc75bff-1dc7-4cd8-9599-04718c173c29"
    },
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {},
      "outputs": [],
      "source": [
        "d = {'a': 1, 'b': 2, 'c': 3}"
      ],
      "id": "0635ca60-a025-4a84-bf2b-2bbb796f4ccf"
    },
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "1."
      ],
      "id": "84c534f5-96ab-4b1f-a860-1257223ad65b"
    },
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {},
      "outputs": [],
      "source": [
        "l = [1, d]"
      ],
      "id": "732ab34b-e85f-4641-b187-4e14db4bc723"
    },
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "1.  tuples and lists are heterogeneous containers\n",
        "\n",
        "2.  tuples are immutable\n",
        "\n",
        "3.  tuples can be used as a key to a dictionary.\n",
        "\n",
        "Belore are Edward’s notes on Quiz 02."
      ],
      "id": "6a8665b9-bacf-4443-8246-a9da0f57e252"
    },
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {},
      "outputs": [],
      "source": [
        "# dict =  # oh no no, don't use type names as variable names"
      ],
      "id": "18077ce7-3144-4f49-8e57-7b2e4f6761a5"
    },
    {
      "cell_type": "code",
      "execution_count": 3,
      "metadata": {},
      "outputs": [
        {
          "output_type": "display_data",
          "metadata": {},
          "data": {
            "text/plain": [
              "set"
            ]
          }
        }
      ],
      "source": [
        "l = {1, 2, 1} # set\n",
        "type(l)"
      ],
      "id": "67acd2bc-8580-49ed-9b54-1e6d57ec3657"
    },
    {
      "cell_type": "code",
      "execution_count": 4,
      "metadata": {},
      "outputs": [
        {
          "output_type": "display_data",
          "metadata": {},
          "data": {
            "text/plain": [
              "{1, 2}"
            ]
          }
        }
      ],
      "source": [
        "l"
      ],
      "id": "1a2b71a0-4281-4f08-880f-ffaa4ddefbb9"
    },
    {
      "cell_type": "code",
      "execution_count": 5,
      "metadata": {},
      "outputs": [],
      "source": [
        "d = {'a': 1, 'b': 2, 'c': 3}"
      ],
      "id": "11c627ea-e2e1-469f-85b2-4562662a0900"
    },
    {
      "cell_type": "code",
      "execution_count": 6,
      "metadata": {},
      "outputs": [
        {
          "output_type": "display_data",
          "metadata": {},
          "data": {
            "text/plain": [
              "2"
            ]
          }
        }
      ],
      "source": [
        "lst = [1, 2, 3]\n",
        "a, b, c = lst\n",
        "b"
      ],
      "id": "91cde93e-5885-4fb4-bbae-08462606e001"
    }
  ],
  "nbformat": 4,
  "nbformat_minor": 5,
  "metadata": {
    "kernelspec": {
      "name": "python3",
      "display_name": "Python 3 (ipykernel)",
      "language": "python"
    },
    "language_info": {
      "name": "python",
      "codemirror_mode": {
        "name": "ipython",
        "version": "3"
      },
      "file_extension": ".py",
      "mimetype": "text/x-python",
      "nbconvert_exporter": "python",
      "pygments_lexer": "ipython3",
      "version": "3.12.12"
    }
  }
}