{
  "schemaVersion": 1,
  "languages": {
    "python": {
      "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
      "implementation": "CPython"
    },
    "r": {
      "version": "R version 4.5.1 (2025-06-13 ucrt)",
      "implementation": "R"
    }
  },
  "environment": {
    "python": {
      "1234": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "rows = [2, 4, 6]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "def average(values):\n    return sum(values) / len(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "answer = average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              },
              {
                "name": "answer",
                "type": "float",
                "representation": "4.0"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": "1",
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "rows = [10, 20]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              },
              {
                "name": "answer",
                "type": "float",
                "representation": "4.0"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": "1",
              "answerIsStale": true
            }
          }
        ],
        "id": "1234",
        "title": {
          "ko": "네 셀의 실행 순서 1234",
          "en": "Four-cell execution order 1234"
        },
        "language": "python",
        "code": "rows = [2, 4, 6]\n\ndef average(values):\n    return sum(values) / len(values)\n\nanswer = average(rows)\n\nrows = [10, 20]\n",
        "codeFile": "data02-snippets/python/environment-1234.py",
        "codeSha256": "df7a27f38bd9ff5ad27bf9909893a8a1805f3d0fba54c70ebe453bb6f06ee8f4",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "1243": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "rows = [2, 4, 6]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "def average(values):\n    return sum(values) / len(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "rows = [10, 20]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "answer = average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              },
              {
                "name": "answer",
                "type": "float",
                "representation": "15.0"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": "4",
              "answerIsStale": false
            }
          }
        ],
        "id": "1243",
        "title": {
          "ko": "네 셀의 실행 순서 1243",
          "en": "Four-cell execution order 1243"
        },
        "language": "python",
        "code": "rows = [2, 4, 6]\n\ndef average(values):\n    return sum(values) / len(values)\n\nrows = [10, 20]\n\nanswer = average(rows)\n",
        "codeFile": "data02-snippets/python/environment-1243.py",
        "codeSha256": "10dd4757e8e200ad145980633e6c6916de6e99119a62460f2f7d7965a114a34a",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "1324": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "rows = [2, 4, 6]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "answer = average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "NameError",
              "message": "name 'average' is not defined"
            },
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "def average(values):\n    return sum(values) / len(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "rows = [10, 20]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          }
        ],
        "id": "1324",
        "title": {
          "ko": "네 셀의 실행 순서 1324",
          "en": "Four-cell execution order 1324"
        },
        "language": "python",
        "code": "rows = [2, 4, 6]\n\nanswer = average(rows)\n\ndef average(values):\n    return sum(values) / len(values)\n\nrows = [10, 20]\n",
        "codeFile": "data02-snippets/python/environment-1324.py",
        "codeSha256": "09797dbbbada715d70ddca17c701a1109846b91e4b8ae229ed4383708d963c4f",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "NameError",
          "message": "name 'average' is not defined"
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "1342": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "rows = [2, 4, 6]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "answer = average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "NameError",
              "message": "name 'average' is not defined"
            },
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "rows = [10, 20]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "def average(values):\n    return sum(values) / len(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          }
        ],
        "id": "1342",
        "title": {
          "ko": "네 셀의 실행 순서 1342",
          "en": "Four-cell execution order 1342"
        },
        "language": "python",
        "code": "rows = [2, 4, 6]\n\nanswer = average(rows)\n\nrows = [10, 20]\n\ndef average(values):\n    return sum(values) / len(values)\n",
        "codeFile": "data02-snippets/python/environment-1342.py",
        "codeSha256": "a43f50dac9699e880c2e905ee46d9c5a2399900a4a2b0e2f56552d38d8d8306d",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "NameError",
          "message": "name 'average' is not defined"
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "1423": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "rows = [2, 4, 6]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "rows = [10, 20]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "def average(values):\n    return sum(values) / len(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "answer = average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              },
              {
                "name": "answer",
                "type": "float",
                "representation": "15.0"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": "4",
              "answerIsStale": false
            }
          }
        ],
        "id": "1423",
        "title": {
          "ko": "네 셀의 실행 순서 1423",
          "en": "Four-cell execution order 1423"
        },
        "language": "python",
        "code": "rows = [2, 4, 6]\n\nrows = [10, 20]\n\ndef average(values):\n    return sum(values) / len(values)\n\nanswer = average(rows)\n",
        "codeFile": "data02-snippets/python/environment-1423.py",
        "codeSha256": "566e2e551f4de51a79fd553b2304205c0dbe221e607b99e4770c0ed0e7e6c810",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "1432": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "rows = [2, 4, 6]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "rows = [10, 20]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "answer = average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "NameError",
              "message": "name 'average' is not defined"
            },
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "def average(values):\n    return sum(values) / len(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          }
        ],
        "id": "1432",
        "title": {
          "ko": "네 셀의 실행 순서 1432",
          "en": "Four-cell execution order 1432"
        },
        "language": "python",
        "code": "rows = [2, 4, 6]\n\nrows = [10, 20]\n\nanswer = average(rows)\n\ndef average(values):\n    return sum(values) / len(values)\n",
        "codeFile": "data02-snippets/python/environment-1432.py",
        "codeSha256": "a6df2bb5b6b2b37f53780cb0a6d203e7491758fb0f4ba4a74492462905ce10d0",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "NameError",
          "message": "name 'average' is not defined"
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "2134": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "def average(values):\n    return sum(values) / len(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "rows = [2, 4, 6]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "answer = average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              },
              {
                "name": "answer",
                "type": "float",
                "representation": "4.0"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": "1",
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "rows = [10, 20]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              },
              {
                "name": "answer",
                "type": "float",
                "representation": "4.0"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": "1",
              "answerIsStale": true
            }
          }
        ],
        "id": "2134",
        "title": {
          "ko": "네 셀의 실행 순서 2134",
          "en": "Four-cell execution order 2134"
        },
        "language": "python",
        "code": "def average(values):\n    return sum(values) / len(values)\n\nrows = [2, 4, 6]\n\nanswer = average(rows)\n\nrows = [10, 20]\n",
        "codeFile": "data02-snippets/python/environment-2134.py",
        "codeSha256": "6855fba03720bc036ccf3e88dfd4580f440a1bb95dadffdf26ab154b8f987e63",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "2143": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "def average(values):\n    return sum(values) / len(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "rows = [2, 4, 6]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "rows = [10, 20]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "answer = average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              },
              {
                "name": "answer",
                "type": "float",
                "representation": "15.0"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": "4",
              "answerIsStale": false
            }
          }
        ],
        "id": "2143",
        "title": {
          "ko": "네 셀의 실행 순서 2143",
          "en": "Four-cell execution order 2143"
        },
        "language": "python",
        "code": "def average(values):\n    return sum(values) / len(values)\n\nrows = [2, 4, 6]\n\nrows = [10, 20]\n\nanswer = average(rows)\n",
        "codeFile": "data02-snippets/python/environment-2143.py",
        "codeSha256": "b6b1a107adc186765f7bf56626469711a27d7f502302022c03f2bd66213d0de7",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "2314": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "def average(values):\n    return sum(values) / len(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "answer = average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "NameError",
              "message": "name 'rows' is not defined"
            },
            "variables": [
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "rows = [2, 4, 6]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "rows = [10, 20]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          }
        ],
        "id": "2314",
        "title": {
          "ko": "네 셀의 실행 순서 2314",
          "en": "Four-cell execution order 2314"
        },
        "language": "python",
        "code": "def average(values):\n    return sum(values) / len(values)\n\nanswer = average(rows)\n\nrows = [2, 4, 6]\n\nrows = [10, 20]\n",
        "codeFile": "data02-snippets/python/environment-2314.py",
        "codeSha256": "c3c05a63845b6adccb1726a47d8814d20c520aab78a75a778e66bb3e0177490b",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "NameError",
          "message": "name 'rows' is not defined"
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "2341": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "def average(values):\n    return sum(values) / len(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "answer = average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "NameError",
              "message": "name 'rows' is not defined"
            },
            "variables": [
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "rows = [10, 20]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "rows = [2, 4, 6]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          }
        ],
        "id": "2341",
        "title": {
          "ko": "네 셀의 실행 순서 2341",
          "en": "Four-cell execution order 2341"
        },
        "language": "python",
        "code": "def average(values):\n    return sum(values) / len(values)\n\nanswer = average(rows)\n\nrows = [10, 20]\n\nrows = [2, 4, 6]\n",
        "codeFile": "data02-snippets/python/environment-2341.py",
        "codeSha256": "e7e551fa34fea68e8146bfcb1be4f6f10df8ea6a7b927be534ba3278460d83ed",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "NameError",
          "message": "name 'rows' is not defined"
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "2413": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "def average(values):\n    return sum(values) / len(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "rows = [10, 20]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "rows = [2, 4, 6]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "answer = average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              },
              {
                "name": "answer",
                "type": "float",
                "representation": "4.0"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": "1",
              "answerIsStale": false
            }
          }
        ],
        "id": "2413",
        "title": {
          "ko": "네 셀의 실행 순서 2413",
          "en": "Four-cell execution order 2413"
        },
        "language": "python",
        "code": "def average(values):\n    return sum(values) / len(values)\n\nrows = [10, 20]\n\nrows = [2, 4, 6]\n\nanswer = average(rows)\n",
        "codeFile": "data02-snippets/python/environment-2413.py",
        "codeSha256": "d4dcc0f03fbe6962b2dc94dd84702971faf5585028883588fc915d175631ea38",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "2431": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "def average(values):\n    return sum(values) / len(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "rows = [10, 20]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "answer = average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              },
              {
                "name": "answer",
                "type": "float",
                "representation": "15.0"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": "4",
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "rows = [2, 4, 6]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              },
              {
                "name": "answer",
                "type": "float",
                "representation": "15.0"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": "4",
              "answerIsStale": true
            }
          }
        ],
        "id": "2431",
        "title": {
          "ko": "네 셀의 실행 순서 2431",
          "en": "Four-cell execution order 2431"
        },
        "language": "python",
        "code": "def average(values):\n    return sum(values) / len(values)\n\nrows = [10, 20]\n\nanswer = average(rows)\n\nrows = [2, 4, 6]\n",
        "codeFile": "data02-snippets/python/environment-2431.py",
        "codeSha256": "2b04a0899257103eb4017664a6a057a647b1cfa0354d52bdcb29c74a441b1a6b",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "3124": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "answer = average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "NameError",
              "message": "name 'average' is not defined"
            },
            "variables": [],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "rows = [2, 4, 6]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "def average(values):\n    return sum(values) / len(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "rows = [10, 20]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          }
        ],
        "id": "3124",
        "title": {
          "ko": "네 셀의 실행 순서 3124",
          "en": "Four-cell execution order 3124"
        },
        "language": "python",
        "code": "answer = average(rows)\n\nrows = [2, 4, 6]\n\ndef average(values):\n    return sum(values) / len(values)\n\nrows = [10, 20]\n",
        "codeFile": "data02-snippets/python/environment-3124.py",
        "codeSha256": "b1f68d5038251a9a46a1b3c6b8c0e5fe02b8619475a68fae5f85ebf297337fdc",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "NameError",
          "message": "name 'average' is not defined"
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "3142": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "answer = average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "NameError",
              "message": "name 'average' is not defined"
            },
            "variables": [],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "rows = [2, 4, 6]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "rows = [10, 20]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "def average(values):\n    return sum(values) / len(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          }
        ],
        "id": "3142",
        "title": {
          "ko": "네 셀의 실행 순서 3142",
          "en": "Four-cell execution order 3142"
        },
        "language": "python",
        "code": "answer = average(rows)\n\nrows = [2, 4, 6]\n\nrows = [10, 20]\n\ndef average(values):\n    return sum(values) / len(values)\n",
        "codeFile": "data02-snippets/python/environment-3142.py",
        "codeSha256": "993879fff593f791f79a50fa5120361dc7aa5d9352beeeb261b9ffbdd528d9f6",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "NameError",
          "message": "name 'average' is not defined"
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "3214": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "answer = average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "NameError",
              "message": "name 'average' is not defined"
            },
            "variables": [],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "def average(values):\n    return sum(values) / len(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "rows = [2, 4, 6]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "rows = [10, 20]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          }
        ],
        "id": "3214",
        "title": {
          "ko": "네 셀의 실행 순서 3214",
          "en": "Four-cell execution order 3214"
        },
        "language": "python",
        "code": "answer = average(rows)\n\ndef average(values):\n    return sum(values) / len(values)\n\nrows = [2, 4, 6]\n\nrows = [10, 20]\n",
        "codeFile": "data02-snippets/python/environment-3214.py",
        "codeSha256": "5a8cd7bc33d42bf71108bc68d7473d809c10e73857fc0fb0bb4f178e5f0011c4",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "NameError",
          "message": "name 'average' is not defined"
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "3241": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "answer = average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "NameError",
              "message": "name 'average' is not defined"
            },
            "variables": [],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "def average(values):\n    return sum(values) / len(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "rows = [10, 20]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "rows = [2, 4, 6]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          }
        ],
        "id": "3241",
        "title": {
          "ko": "네 셀의 실행 순서 3241",
          "en": "Four-cell execution order 3241"
        },
        "language": "python",
        "code": "answer = average(rows)\n\ndef average(values):\n    return sum(values) / len(values)\n\nrows = [10, 20]\n\nrows = [2, 4, 6]\n",
        "codeFile": "data02-snippets/python/environment-3241.py",
        "codeSha256": "0da8e5635e009dcd162d0d771da6eae7369f0b250a0129578297941755552f7c",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "NameError",
          "message": "name 'average' is not defined"
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "3412": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "answer = average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "NameError",
              "message": "name 'average' is not defined"
            },
            "variables": [],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "rows = [10, 20]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "rows = [2, 4, 6]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "def average(values):\n    return sum(values) / len(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          }
        ],
        "id": "3412",
        "title": {
          "ko": "네 셀의 실행 순서 3412",
          "en": "Four-cell execution order 3412"
        },
        "language": "python",
        "code": "answer = average(rows)\n\nrows = [10, 20]\n\nrows = [2, 4, 6]\n\ndef average(values):\n    return sum(values) / len(values)\n",
        "codeFile": "data02-snippets/python/environment-3412.py",
        "codeSha256": "caa66c74962832deaa03dc0f3b9420afcfb086ce7674ced478a153c0afbc0159",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "NameError",
          "message": "name 'average' is not defined"
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "3421": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "answer = average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "NameError",
              "message": "name 'average' is not defined"
            },
            "variables": [],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "rows = [10, 20]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "def average(values):\n    return sum(values) / len(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "rows = [2, 4, 6]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          }
        ],
        "id": "3421",
        "title": {
          "ko": "네 셀의 실행 순서 3421",
          "en": "Four-cell execution order 3421"
        },
        "language": "python",
        "code": "answer = average(rows)\n\nrows = [10, 20]\n\ndef average(values):\n    return sum(values) / len(values)\n\nrows = [2, 4, 6]\n",
        "codeFile": "data02-snippets/python/environment-3421.py",
        "codeSha256": "611e1384f9f260b017faa2c9345c88bc6987877faa2bdf220693413ea9d5a040",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "NameError",
          "message": "name 'average' is not defined"
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "4123": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "rows = [10, 20]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "rows = [2, 4, 6]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "def average(values):\n    return sum(values) / len(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "answer = average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              },
              {
                "name": "answer",
                "type": "float",
                "representation": "4.0"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": "1",
              "answerIsStale": false
            }
          }
        ],
        "id": "4123",
        "title": {
          "ko": "네 셀의 실행 순서 4123",
          "en": "Four-cell execution order 4123"
        },
        "language": "python",
        "code": "rows = [10, 20]\n\nrows = [2, 4, 6]\n\ndef average(values):\n    return sum(values) / len(values)\n\nanswer = average(rows)\n",
        "codeFile": "data02-snippets/python/environment-4123.py",
        "codeSha256": "7e6ab6490e887936ff062b5efcf185b762f191487456023a9d7a10eefb1bf01f",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "4132": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "rows = [10, 20]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "rows = [2, 4, 6]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "answer = average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "NameError",
              "message": "name 'average' is not defined"
            },
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "def average(values):\n    return sum(values) / len(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          }
        ],
        "id": "4132",
        "title": {
          "ko": "네 셀의 실행 순서 4132",
          "en": "Four-cell execution order 4132"
        },
        "language": "python",
        "code": "rows = [10, 20]\n\nrows = [2, 4, 6]\n\nanswer = average(rows)\n\ndef average(values):\n    return sum(values) / len(values)\n",
        "codeFile": "data02-snippets/python/environment-4132.py",
        "codeSha256": "4f372c1858b10470d47f8ea41e4a89cfb13083a8314df356995b894b602721c4",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "NameError",
          "message": "name 'average' is not defined"
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "4213": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "rows = [10, 20]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "def average(values):\n    return sum(values) / len(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "rows = [2, 4, 6]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "answer = average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              },
              {
                "name": "answer",
                "type": "float",
                "representation": "4.0"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": "1",
              "answerIsStale": false
            }
          }
        ],
        "id": "4213",
        "title": {
          "ko": "네 셀의 실행 순서 4213",
          "en": "Four-cell execution order 4213"
        },
        "language": "python",
        "code": "rows = [10, 20]\n\ndef average(values):\n    return sum(values) / len(values)\n\nrows = [2, 4, 6]\n\nanswer = average(rows)\n",
        "codeFile": "data02-snippets/python/environment-4213.py",
        "codeSha256": "7df8b94a1f3efe4011860e278b522b446b23475a0ad346dc44d4c56462e63ff6",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "4231": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "rows = [10, 20]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "def average(values):\n    return sum(values) / len(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "answer = average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              },
              {
                "name": "answer",
                "type": "float",
                "representation": "15.0"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": "4",
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "rows = [2, 4, 6]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              },
              {
                "name": "answer",
                "type": "float",
                "representation": "15.0"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": "4",
              "answerIsStale": true
            }
          }
        ],
        "id": "4231",
        "title": {
          "ko": "네 셀의 실행 순서 4231",
          "en": "Four-cell execution order 4231"
        },
        "language": "python",
        "code": "rows = [10, 20]\n\ndef average(values):\n    return sum(values) / len(values)\n\nanswer = average(rows)\n\nrows = [2, 4, 6]\n",
        "codeFile": "data02-snippets/python/environment-4231.py",
        "codeSha256": "32d011e2cb1f9f8d0e88d8fa33683ca6afd507d0d0922e68067cb3678a963ee7",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "4312": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "rows = [10, 20]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "answer = average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "NameError",
              "message": "name 'average' is not defined"
            },
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "rows = [2, 4, 6]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "def average(values):\n    return sum(values) / len(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          }
        ],
        "id": "4312",
        "title": {
          "ko": "네 셀의 실행 순서 4312",
          "en": "Four-cell execution order 4312"
        },
        "language": "python",
        "code": "rows = [10, 20]\n\nanswer = average(rows)\n\nrows = [2, 4, 6]\n\ndef average(values):\n    return sum(values) / len(values)\n",
        "codeFile": "data02-snippets/python/environment-4312.py",
        "codeSha256": "ca4afd3bdcb0424245e917fc9cb71ba8cc53da1d9973246a97be6f94046b40c3",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "NameError",
          "message": "name 'average' is not defined"
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "4321": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "rows = [10, 20]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "answer = average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "NameError",
              "message": "name 'average' is not defined"
            },
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "def average(values):\n    return sum(values) / len(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[10, 20]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "rows = [2, 4, 6]\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "list",
                "representation": "[2, 4, 6]"
              },
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          }
        ],
        "id": "4321",
        "title": {
          "ko": "네 셀의 실행 순서 4321",
          "en": "Four-cell execution order 4321"
        },
        "language": "python",
        "code": "rows = [10, 20]\n\nanswer = average(rows)\n\ndef average(values):\n    return sum(values) / len(values)\n\nrows = [2, 4, 6]\n",
        "codeFile": "data02-snippets/python/environment-4321.py",
        "codeSha256": "5490fb5fb089b2dcd9be4475d09e65baadaaab8c59880275f3053fdce64e7e3e",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "NameError",
          "message": "name 'average' is not defined"
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      }
    },
    "r": {
      "1234": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "rows <- c(2, 4, 6)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "average <- function(values) sum(values) / length(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "answer <- average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              },
              {
                "name": "answer",
                "type": "double",
                "representation": "4"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": "1",
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "rows <- c(10, 20)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              },
              {
                "name": "answer",
                "type": "double",
                "representation": "4"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": "1",
              "answerIsStale": true
            }
          }
        ],
        "id": "1234",
        "title": {
          "ko": "네 셀의 실행 순서 1234",
          "en": "Four-cell execution order 1234"
        },
        "language": "r",
        "code": "rows <- c(2, 4, 6)\n\naverage <- function(values) sum(values) / length(values)\n\nanswer <- average(rows)\n\nrows <- c(10, 20)\n",
        "codeFile": "data02-snippets/r/environment-1234.R",
        "codeSha256": "7a8b9161def27e6ad2f3874a3adc4ab3b7a725b21f90f0ae3674494058da1123",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "f0986a1b05df5d3d7fee73545c278592dfa9a43d21bee53d640434a8a1d12795",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "1243": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "rows <- c(2, 4, 6)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "average <- function(values) sum(values) / length(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "rows <- c(10, 20)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "answer <- average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              },
              {
                "name": "answer",
                "type": "double",
                "representation": "15"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": "4",
              "answerIsStale": false
            }
          }
        ],
        "id": "1243",
        "title": {
          "ko": "네 셀의 실행 순서 1243",
          "en": "Four-cell execution order 1243"
        },
        "language": "r",
        "code": "rows <- c(2, 4, 6)\n\naverage <- function(values) sum(values) / length(values)\n\nrows <- c(10, 20)\n\nanswer <- average(rows)\n",
        "codeFile": "data02-snippets/r/environment-1243.R",
        "codeSha256": "cc158883f89d3704863ba95ce5042f08d54cd69fe4d6eeb7dbf45dee799d20ee",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "0238d0365301ccf2d5aaf1e57495b0f4c79c2037c85cb0952d0cce2d113d097a",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "1324": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "rows <- c(2, 4, 6)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "answer <- average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "simpleError",
              "message": "could not find function \"average\""
            },
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "average <- function(values) sum(values) / length(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "rows <- c(10, 20)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          }
        ],
        "id": "1324",
        "title": {
          "ko": "네 셀의 실행 순서 1324",
          "en": "Four-cell execution order 1324"
        },
        "language": "r",
        "code": "rows <- c(2, 4, 6)\n\nanswer <- average(rows)\n\naverage <- function(values) sum(values) / length(values)\n\nrows <- c(10, 20)\n",
        "codeFile": "data02-snippets/r/environment-1324.R",
        "codeSha256": "9938c4b55c5c11fa27bac8f0c140bd83ddc88eeca1604f27ab452ec51148fd81",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "simpleError",
          "message": "could not find function \"average\""
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "ccb47bda5aa9cfe599eb8e24a4f702bf17e866d0cfbfa9750a98610d912081f9",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "1342": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "rows <- c(2, 4, 6)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "answer <- average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "simpleError",
              "message": "could not find function \"average\""
            },
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "rows <- c(10, 20)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "average <- function(values) sum(values) / length(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          }
        ],
        "id": "1342",
        "title": {
          "ko": "네 셀의 실행 순서 1342",
          "en": "Four-cell execution order 1342"
        },
        "language": "r",
        "code": "rows <- c(2, 4, 6)\n\nanswer <- average(rows)\n\nrows <- c(10, 20)\n\naverage <- function(values) sum(values) / length(values)\n",
        "codeFile": "data02-snippets/r/environment-1342.R",
        "codeSha256": "fb5211f69bd999fe6e2135fb36e5ea0dde925438e179ede4b0d2ea400a57ab9d",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "simpleError",
          "message": "could not find function \"average\""
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "5bfc63f83f1119bc99d70acf89968e4ab950a3f0f7248bd0169116d5bd93f794",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "1423": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "rows <- c(2, 4, 6)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "rows <- c(10, 20)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "average <- function(values) sum(values) / length(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "answer <- average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              },
              {
                "name": "answer",
                "type": "double",
                "representation": "15"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": "4",
              "answerIsStale": false
            }
          }
        ],
        "id": "1423",
        "title": {
          "ko": "네 셀의 실행 순서 1423",
          "en": "Four-cell execution order 1423"
        },
        "language": "r",
        "code": "rows <- c(2, 4, 6)\n\nrows <- c(10, 20)\n\naverage <- function(values) sum(values) / length(values)\n\nanswer <- average(rows)\n",
        "codeFile": "data02-snippets/r/environment-1423.R",
        "codeSha256": "962ce20a153d483fac407b0aa71463fa11cb641046bbb454e2eb7f8399c7e8d7",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "52c4bb125a97ebec146a6569204a8efcfa7ec808b7f0726f3c476b60504a5f7c",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "1432": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "rows <- c(2, 4, 6)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "rows <- c(10, 20)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "answer <- average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "simpleError",
              "message": "could not find function \"average\""
            },
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "average <- function(values) sum(values) / length(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          }
        ],
        "id": "1432",
        "title": {
          "ko": "네 셀의 실행 순서 1432",
          "en": "Four-cell execution order 1432"
        },
        "language": "r",
        "code": "rows <- c(2, 4, 6)\n\nrows <- c(10, 20)\n\nanswer <- average(rows)\n\naverage <- function(values) sum(values) / length(values)\n",
        "codeFile": "data02-snippets/r/environment-1432.R",
        "codeSha256": "3ce14c73a6990121ffc47cc7e9807143514ac02ed442f60574749ff0e9893920",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "simpleError",
          "message": "could not find function \"average\""
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "2095081c1aed9256ec661944532a4bec70cccfd45e14300cb67f98315f471b20",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "2134": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "average <- function(values) sum(values) / length(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "rows <- c(2, 4, 6)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "answer <- average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              },
              {
                "name": "answer",
                "type": "double",
                "representation": "4"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": "1",
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "rows <- c(10, 20)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              },
              {
                "name": "answer",
                "type": "double",
                "representation": "4"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": "1",
              "answerIsStale": true
            }
          }
        ],
        "id": "2134",
        "title": {
          "ko": "네 셀의 실행 순서 2134",
          "en": "Four-cell execution order 2134"
        },
        "language": "r",
        "code": "average <- function(values) sum(values) / length(values)\n\nrows <- c(2, 4, 6)\n\nanswer <- average(rows)\n\nrows <- c(10, 20)\n",
        "codeFile": "data02-snippets/r/environment-2134.R",
        "codeSha256": "34e748086b4aa36c70cb41a00e12f43eb333198a099daf2bbc802c778a343952",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "9b29e92e4d409c9e4f2a5517619b1e7a8773a15b2c909da3eec5ad22f1af3e87",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "2143": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "average <- function(values) sum(values) / length(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "rows <- c(2, 4, 6)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "rows <- c(10, 20)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "answer <- average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              },
              {
                "name": "answer",
                "type": "double",
                "representation": "15"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": "4",
              "answerIsStale": false
            }
          }
        ],
        "id": "2143",
        "title": {
          "ko": "네 셀의 실행 순서 2143",
          "en": "Four-cell execution order 2143"
        },
        "language": "r",
        "code": "average <- function(values) sum(values) / length(values)\n\nrows <- c(2, 4, 6)\n\nrows <- c(10, 20)\n\nanswer <- average(rows)\n",
        "codeFile": "data02-snippets/r/environment-2143.R",
        "codeSha256": "d08cabdb6687d96bbe33c3bfd78d9234e105a3423ff9a4e2be64488e6d85c158",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "1c24615284a1489464514f2eac990323d294ba42de45602db60356d30a67b168",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "2314": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "average <- function(values) sum(values) / length(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "answer <- average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "simpleError",
              "message": "object 'rows' not found"
            },
            "variables": [
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "rows <- c(2, 4, 6)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "rows <- c(10, 20)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          }
        ],
        "id": "2314",
        "title": {
          "ko": "네 셀의 실행 순서 2314",
          "en": "Four-cell execution order 2314"
        },
        "language": "r",
        "code": "average <- function(values) sum(values) / length(values)\n\nanswer <- average(rows)\n\nrows <- c(2, 4, 6)\n\nrows <- c(10, 20)\n",
        "codeFile": "data02-snippets/r/environment-2314.R",
        "codeSha256": "57deb43fa5e96a2fc53efe43086f42ef2f9b295fee67bf39c102f7b3320dbd34",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "simpleError",
          "message": "object 'rows' not found"
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "aab5216ef4903e7854a72ef976303ce542bd5615c36efd26e02a160127380c95",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "2341": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "average <- function(values) sum(values) / length(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "answer <- average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "simpleError",
              "message": "object 'rows' not found"
            },
            "variables": [
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "rows <- c(10, 20)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "rows <- c(2, 4, 6)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          }
        ],
        "id": "2341",
        "title": {
          "ko": "네 셀의 실행 순서 2341",
          "en": "Four-cell execution order 2341"
        },
        "language": "r",
        "code": "average <- function(values) sum(values) / length(values)\n\nanswer <- average(rows)\n\nrows <- c(10, 20)\n\nrows <- c(2, 4, 6)\n",
        "codeFile": "data02-snippets/r/environment-2341.R",
        "codeSha256": "3d65b30767e12eff1f05c3bb1a78ee958582283c0d5ff7ec5061e0c4aabeaee9",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "simpleError",
          "message": "object 'rows' not found"
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "ca838a1ff14651288a857d0c6c446916cad5d2c1f90ff4518f944749489f9c14",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "2413": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "average <- function(values) sum(values) / length(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "rows <- c(10, 20)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "rows <- c(2, 4, 6)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "answer <- average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              },
              {
                "name": "answer",
                "type": "double",
                "representation": "4"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": "1",
              "answerIsStale": false
            }
          }
        ],
        "id": "2413",
        "title": {
          "ko": "네 셀의 실행 순서 2413",
          "en": "Four-cell execution order 2413"
        },
        "language": "r",
        "code": "average <- function(values) sum(values) / length(values)\n\nrows <- c(10, 20)\n\nrows <- c(2, 4, 6)\n\nanswer <- average(rows)\n",
        "codeFile": "data02-snippets/r/environment-2413.R",
        "codeSha256": "e018ab8defb6f35f2685dd5c9886c7c03ee9716a5869f31f291e8f515e3ebbc9",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "b7400e2f4af6d55024e6cabccc265f8aff49285958b2d9a18c85953d35b2429f",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "2431": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "average <- function(values) sum(values) / length(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "rows <- c(10, 20)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "answer <- average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              },
              {
                "name": "answer",
                "type": "double",
                "representation": "15"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": "4",
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "rows <- c(2, 4, 6)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              },
              {
                "name": "answer",
                "type": "double",
                "representation": "15"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": "4",
              "answerIsStale": true
            }
          }
        ],
        "id": "2431",
        "title": {
          "ko": "네 셀의 실행 순서 2431",
          "en": "Four-cell execution order 2431"
        },
        "language": "r",
        "code": "average <- function(values) sum(values) / length(values)\n\nrows <- c(10, 20)\n\nanswer <- average(rows)\n\nrows <- c(2, 4, 6)\n",
        "codeFile": "data02-snippets/r/environment-2431.R",
        "codeSha256": "43f38a32710647174ba80120238584cbb50c0b748f94736395a045c241137c74",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "e063ecc38d44d86fe9b845f80e97d5a6161b73042f547782edaa5266bea39543",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "3124": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "answer <- average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "simpleError",
              "message": "could not find function \"average\""
            },
            "variables": [],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "rows <- c(2, 4, 6)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "average <- function(values) sum(values) / length(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "rows <- c(10, 20)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          }
        ],
        "id": "3124",
        "title": {
          "ko": "네 셀의 실행 순서 3124",
          "en": "Four-cell execution order 3124"
        },
        "language": "r",
        "code": "answer <- average(rows)\n\nrows <- c(2, 4, 6)\n\naverage <- function(values) sum(values) / length(values)\n\nrows <- c(10, 20)\n",
        "codeFile": "data02-snippets/r/environment-3124.R",
        "codeSha256": "6fb0be2637fc45a92130716652e736cdeb44a6edf8aecfe03cfc93881b231978",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "simpleError",
          "message": "could not find function \"average\""
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "c73c4e523c877b72984367bd09c3c315487936ec3d71c718ca9bf7ebfbf015be",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "3142": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "answer <- average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "simpleError",
              "message": "could not find function \"average\""
            },
            "variables": [],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "rows <- c(2, 4, 6)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "rows <- c(10, 20)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "average <- function(values) sum(values) / length(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          }
        ],
        "id": "3142",
        "title": {
          "ko": "네 셀의 실행 순서 3142",
          "en": "Four-cell execution order 3142"
        },
        "language": "r",
        "code": "answer <- average(rows)\n\nrows <- c(2, 4, 6)\n\nrows <- c(10, 20)\n\naverage <- function(values) sum(values) / length(values)\n",
        "codeFile": "data02-snippets/r/environment-3142.R",
        "codeSha256": "76d378fa70093446ba48dfa74565e92159720408179c3f2c0b8f28387939db15",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "simpleError",
          "message": "could not find function \"average\""
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "255d45fff0ba07490b7f2ddd62f7cc14484f999db33e2da5d0234621e0ade375",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "3214": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "answer <- average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "simpleError",
              "message": "could not find function \"average\""
            },
            "variables": [],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "average <- function(values) sum(values) / length(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "rows <- c(2, 4, 6)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "rows <- c(10, 20)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          }
        ],
        "id": "3214",
        "title": {
          "ko": "네 셀의 실행 순서 3214",
          "en": "Four-cell execution order 3214"
        },
        "language": "r",
        "code": "answer <- average(rows)\n\naverage <- function(values) sum(values) / length(values)\n\nrows <- c(2, 4, 6)\n\nrows <- c(10, 20)\n",
        "codeFile": "data02-snippets/r/environment-3214.R",
        "codeSha256": "cf45a1fef4fb6812daf119694e9cd96e608b460af866cea9b16c3b31df75b500",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "simpleError",
          "message": "could not find function \"average\""
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "fa04b9792a0be9ba5cb6922d9d26d84a1f63d6e30d7a758dff235abbddcd8298",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "3241": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "answer <- average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "simpleError",
              "message": "could not find function \"average\""
            },
            "variables": [],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "average <- function(values) sum(values) / length(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "rows <- c(10, 20)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "rows <- c(2, 4, 6)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          }
        ],
        "id": "3241",
        "title": {
          "ko": "네 셀의 실행 순서 3241",
          "en": "Four-cell execution order 3241"
        },
        "language": "r",
        "code": "answer <- average(rows)\n\naverage <- function(values) sum(values) / length(values)\n\nrows <- c(10, 20)\n\nrows <- c(2, 4, 6)\n",
        "codeFile": "data02-snippets/r/environment-3241.R",
        "codeSha256": "94a2ba75ae0ba0cd1b5bf9534678f1e8e10ffd1902a7727c807d8304923507ea",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "simpleError",
          "message": "could not find function \"average\""
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "f43fc280c9be46a6eeeb8254b5ad0c5e3499150fa714513f7a55249ec2a2d91a",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "3412": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "answer <- average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "simpleError",
              "message": "could not find function \"average\""
            },
            "variables": [],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "rows <- c(10, 20)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "rows <- c(2, 4, 6)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "average <- function(values) sum(values) / length(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          }
        ],
        "id": "3412",
        "title": {
          "ko": "네 셀의 실행 순서 3412",
          "en": "Four-cell execution order 3412"
        },
        "language": "r",
        "code": "answer <- average(rows)\n\nrows <- c(10, 20)\n\nrows <- c(2, 4, 6)\n\naverage <- function(values) sum(values) / length(values)\n",
        "codeFile": "data02-snippets/r/environment-3412.R",
        "codeSha256": "8b714b3a5169837d62b68a70532922f4fdbbbefa5e75c2ad4e26f91a56d0e77b",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "simpleError",
          "message": "could not find function \"average\""
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "936529f5e0fcc4d7d1e1b6a92ff9cff5b2b9c0c9c10a8f886b50d0ac57a15f3d",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "3421": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "answer <- average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "simpleError",
              "message": "could not find function \"average\""
            },
            "variables": [],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": null,
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "rows <- c(10, 20)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "average <- function(values) sum(values) / length(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "rows <- c(2, 4, 6)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          }
        ],
        "id": "3421",
        "title": {
          "ko": "네 셀의 실행 순서 3421",
          "en": "Four-cell execution order 3421"
        },
        "language": "r",
        "code": "answer <- average(rows)\n\nrows <- c(10, 20)\n\naverage <- function(values) sum(values) / length(values)\n\nrows <- c(2, 4, 6)\n",
        "codeFile": "data02-snippets/r/environment-3421.R",
        "codeSha256": "73053ed6d92d2c8782ff936380b2496ce61621c4eedbbe59182816e71f87417c",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "simpleError",
          "message": "could not find function \"average\""
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "49efad66642af279a375f91140c059c6ff9f6cb2cbeb1480871ae2519d6777e2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "4123": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "rows <- c(10, 20)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "rows <- c(2, 4, 6)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "average <- function(values) sum(values) / length(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "answer <- average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              },
              {
                "name": "answer",
                "type": "double",
                "representation": "4"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": "1",
              "answerIsStale": false
            }
          }
        ],
        "id": "4123",
        "title": {
          "ko": "네 셀의 실행 순서 4123",
          "en": "Four-cell execution order 4123"
        },
        "language": "r",
        "code": "rows <- c(10, 20)\n\nrows <- c(2, 4, 6)\n\naverage <- function(values) sum(values) / length(values)\n\nanswer <- average(rows)\n",
        "codeFile": "data02-snippets/r/environment-4123.R",
        "codeSha256": "ff40d1957baaeca1f51a828cdb6fce30036d92aa62c08d3a50c2ff235a72f5e8",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "5a1b425a706ab7a1af4f80ad544ae792242e5c7678c4d7954772459fa034ca32",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "4132": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "rows <- c(10, 20)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "rows <- c(2, 4, 6)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "answer <- average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "simpleError",
              "message": "could not find function \"average\""
            },
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "average <- function(values) sum(values) / length(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          }
        ],
        "id": "4132",
        "title": {
          "ko": "네 셀의 실행 순서 4132",
          "en": "Four-cell execution order 4132"
        },
        "language": "r",
        "code": "rows <- c(10, 20)\n\nrows <- c(2, 4, 6)\n\nanswer <- average(rows)\n\naverage <- function(values) sum(values) / length(values)\n",
        "codeFile": "data02-snippets/r/environment-4132.R",
        "codeSha256": "1f6902fc0c163c54c11779197838baeb05225e9dfe8d1f37f2bdbcfdb445bfcc",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "simpleError",
          "message": "could not find function \"average\""
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "1aa2dbebf24e0a38262486b7a466eebc1d48aee00a0b35ca8a55d6153b1c6405",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "4213": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "rows <- c(10, 20)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "average <- function(values) sum(values) / length(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "rows <- c(2, 4, 6)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "answer <- average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              },
              {
                "name": "answer",
                "type": "double",
                "representation": "4"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": "1",
              "answerIsStale": false
            }
          }
        ],
        "id": "4213",
        "title": {
          "ko": "네 셀의 실행 순서 4213",
          "en": "Four-cell execution order 4213"
        },
        "language": "r",
        "code": "rows <- c(10, 20)\n\naverage <- function(values) sum(values) / length(values)\n\nrows <- c(2, 4, 6)\n\nanswer <- average(rows)\n",
        "codeFile": "data02-snippets/r/environment-4213.R",
        "codeSha256": "def941e4515b7cdeab6ba3645a9a598e2ee233fc7298b9920b502e50ab72c519",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "9e73ab8e490e587e21ce83a956d3f8e79db7d4d65699ab7d3064b1760cb945e3",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "4231": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "rows <- c(10, 20)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "average <- function(values) sum(values) / length(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "answer <- average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              },
              {
                "name": "answer",
                "type": "double",
                "representation": "15"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": "4",
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "rows <- c(2, 4, 6)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              },
              {
                "name": "answer",
                "type": "double",
                "representation": "15"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": "4",
              "answerIsStale": true
            }
          }
        ],
        "id": "4231",
        "title": {
          "ko": "네 셀의 실행 순서 4231",
          "en": "Four-cell execution order 4231"
        },
        "language": "r",
        "code": "rows <- c(10, 20)\n\naverage <- function(values) sum(values) / length(values)\n\nanswer <- average(rows)\n\nrows <- c(2, 4, 6)\n",
        "codeFile": "data02-snippets/r/environment-4231.R",
        "codeSha256": "fb2994adb774f6ff3ba438baabb5bc7d7998eff8b8c33c5732eafef1a07e7ec3",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "a3d01751ce0647b4f2be38fe013f87f73f15ffafeea96616b303404ee9074886",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "4312": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "rows <- c(10, 20)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "answer <- average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "simpleError",
              "message": "could not find function \"average\""
            },
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "rows <- c(2, 4, 6)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "average <- function(values) sum(values) / length(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          }
        ],
        "id": "4312",
        "title": {
          "ko": "네 셀의 실행 순서 4312",
          "en": "Four-cell execution order 4312"
        },
        "language": "r",
        "code": "rows <- c(10, 20)\n\nanswer <- average(rows)\n\nrows <- c(2, 4, 6)\n\naverage <- function(values) sum(values) / length(values)\n",
        "codeFile": "data02-snippets/r/environment-4312.R",
        "codeSha256": "9a23c4fc9ae8a734ea158d058c1f75ee1f951f4a3acced6a25f28e58e5ec3213",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "simpleError",
          "message": "could not find function \"average\""
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "8f00ca188aee95ee5a6443d62281b8f79a217281bb84be08918fa7d58fa89798",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "4321": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "rows <- c(10, 20)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            },
            "cellId": "4",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 2,
            "code": "answer <- average(rows)\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "simpleError",
              "message": "could not find function \"average\""
            },
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            },
            "cellId": "3",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 3,
            "code": "average <- function(values) sum(values) / length(values)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(10, 20)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            },
            "cellId": "2",
            "recordedDependency": {
              "currentRowsCell": "4",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          },
          {
            "index": 4,
            "code": "rows <- c(2, 4, 6)\n",
            "stdout": "",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "rows",
                "type": "double",
                "representation": "c(2, 4, 6)"
              },
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              }
            ],
            "label": {
              "ko": "4단계",
              "en": "Step 4"
            },
            "cellId": "1",
            "recordedDependency": {
              "currentRowsCell": "1",
              "answerRowsCell": null,
              "answerIsStale": false
            }
          }
        ],
        "id": "4321",
        "title": {
          "ko": "네 셀의 실행 순서 4321",
          "en": "Four-cell execution order 4321"
        },
        "language": "r",
        "code": "rows <- c(10, 20)\n\nanswer <- average(rows)\n\naverage <- function(values) sum(values) / length(values)\n\nrows <- c(2, 4, 6)\n",
        "codeFile": "data02-snippets/r/environment-4321.R",
        "codeSha256": "74b563165040dfcb4596db9f5c7bdf60cd456a26d2c50388d44537db60277a86",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "simpleError",
          "message": "could not find function \"average\""
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "73d9c347f88730ba2514f1cdbae2c2b9e3b76db80c6d3ab30465ba91506232a8",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      }
    }
  },
  "types": {
    "python": {
      "number-string": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "x = 3\ny = \"3\"\nprint(type(x).__name__, type(y).__name__)\nprint(x + 2)\nprint(y + \"2\")\n",
            "stdout": "int str\n5\n32\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "x",
                "type": "int",
                "representation": "3"
              },
              {
                "name": "y",
                "type": "str",
                "representation": "'3'"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "number-string",
        "title": {
          "ko": "숫자 3과 문자 3",
          "en": "Number three and text three"
        },
        "language": "python",
        "code": "x = 3\ny = \"3\"\nprint(type(x).__name__, type(y).__name__)\nprint(x + 2)\nprint(y + \"2\")\n",
        "codeFile": "data02-snippets/python/types-number-string.py",
        "codeSha256": "22b937def3ddb5b32880b4f1eb66a22e3fe1140ea4118da97ab9c6369170ad16",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "int str\n5\n32\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "integer-float": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "a = 3\nb = 3.0\nprint(type(a).__name__, type(b).__name__)\nprint(7 / 2, 7 // 2)\n",
            "stdout": "int float\n3.5 3\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "a",
                "type": "int",
                "representation": "3"
              },
              {
                "name": "b",
                "type": "float",
                "representation": "3.0"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "integer-float",
        "title": {
          "ko": "정수와 실수의 나눗셈",
          "en": "Integer and floating-point division"
        },
        "language": "python",
        "code": "a = 3\nb = 3.0\nprint(type(a).__name__, type(b).__name__)\nprint(7 / 2, 7 // 2)\n",
        "codeFile": "data02-snippets/python/types-integer-float.py",
        "codeSha256": "cbf08a68d04d6997f2753509d56d45b1e83c5d286ae9d951241be04281c7289f",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "int float\n3.5 3\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "mixed-container": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "values = [1, \"2\", True]\nprint([type(x).__name__ for x in values])\n",
            "stdout": "['int', 'str', 'bool']\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "list",
                "representation": "[1, '2', True]"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "mixed-container",
        "title": {
          "ko": "서로 다른 자료형을 담기",
          "en": "Containers with mixed types"
        },
        "language": "python",
        "code": "values = [1, \"2\", True]\nprint([type(x).__name__ for x in values])\n",
        "codeFile": "data02-snippets/python/types-mixed-container.py",
        "codeSha256": "091c5510d9a29c5558da7d1b0e8c7ecaead90a9908d61280ff520932e1fa08c5",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "['int', 'str', 'bool']\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "conversion": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "text = \"3.5\"\nvalue = float(text)\nprint(value + 1)\n",
            "stdout": "4.5\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "text",
                "type": "str",
                "representation": "'3.5'"
              },
              {
                "name": "value",
                "type": "float",
                "representation": "3.5"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "conversion",
        "title": {
          "ko": "명시적으로 문자 숫자를 변환하기",
          "en": "Explicit numeric conversion"
        },
        "language": "python",
        "code": "text = \"3.5\"\nvalue = float(text)\nprint(value + 1)\n",
        "codeFile": "data02-snippets/python/types-conversion.py",
        "codeSha256": "6a2e5b879bdadbe0f1c6f59c87df3e66908e0e470ff2c4814c6e5f0163eb5cde",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "4.5\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "invalid-conversion": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "text = \"three\"\nvalue = float(text)\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "ValueError",
              "message": "could not convert string to float: 'three'"
            },
            "variables": [
              {
                "name": "text",
                "type": "str",
                "representation": "'three'"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "invalid-conversion",
        "title": {
          "ko": "변환할 수 없는 문자를 진단하기",
          "en": "Diagnose an invalid numeric conversion"
        },
        "language": "python",
        "code": "text = \"three\"\nvalue = float(text)\n",
        "codeFile": "data02-snippets/python/types-invalid-conversion.py",
        "codeSha256": "e1e20b3041c1fa77496c25eb5185c9f43fdb7e8266b6248d2649ddae9a2f6cb6",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "ValueError",
          "message": "could not convert string to float: 'three'"
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "comparison": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "x = 3\nprint(x == 3, x > 4)\n",
            "stdout": "True False\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "x",
                "type": "int",
                "representation": "3"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "comparison",
        "title": {
          "ko": "할당과 비교를 구별하기",
          "en": "Assignment differs from comparison"
        },
        "language": "python",
        "code": "x = 3\nprint(x == 3, x > 4)\n",
        "codeFile": "data02-snippets/python/types-comparison.py",
        "codeSha256": "85e71e4c5ee2dbb0f415ae93726bd3467b0571072d8147dfde3035336a921dd4",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "True False\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "vector-arithmetic": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "values = [1, 2, 3]\nprint(values * 2)\nprint([x * 2 for x in values])\n",
            "stdout": "[1, 2, 3, 1, 2, 3]\n[2, 4, 6]\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "list",
                "representation": "[1, 2, 3]"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "vector-arithmetic",
        "title": {
          "ko": "리스트 반복과 벡터 연산",
          "en": "List repetition versus vector arithmetic"
        },
        "language": "python",
        "code": "values = [1, 2, 3]\nprint(values * 2)\nprint([x * 2 for x in values])\n",
        "codeFile": "data02-snippets/python/types-vector-arithmetic.py",
        "codeSha256": "b2a9f9d0022a5e9c1ea3f12e85e1e7050ebcbb713bb16762c0f6075ee443ff5a",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1, 2, 3, 1, 2, 3]\n[2, 4, 6]\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "empty": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "values = []\nprint(type(values).__name__, len(values))\n",
            "stdout": "list 0\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "list",
                "representation": "[]"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "empty",
        "title": {
          "ko": "빈 자료도 자료형과 길이가 있다",
          "en": "Empty objects still have a type and length"
        },
        "language": "python",
        "code": "values = []\nprint(type(values).__name__, len(values))\n",
        "codeFile": "data02-snippets/python/types-empty.py",
        "codeSha256": "0033fc870bdc2f6aba93b065d40a831344825b99792470d51878c1633d426e0e",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "list 0\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "decimal": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "value = 0.1 + 0.2\nprint(repr(value))\nprint(value == 0.3)\n",
            "stdout": "0.30000000000000004\nFalse\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "value",
                "type": "float",
                "representation": "0.30000000000000004"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "decimal",
        "title": {
          "ko": "십진수 덧셈과 기계 저장",
          "en": "Decimal addition and machine representation"
        },
        "language": "python",
        "code": "value = 0.1 + 0.2\nprint(repr(value))\nprint(value == 0.3)\n",
        "codeFile": "data02-snippets/python/types-decimal.py",
        "codeSha256": "56040fcf75c498ff24a2665752f52b633b71daec5da07a9277735739e2fa16f7",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "0.30000000000000004\nFalse\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      }
    },
    "r": {
      "number-string": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "x <- 3\ny <- \"3\"\nprint(typeof(x)); print(typeof(y))\nprint(x + 2)\nprint(paste0(y, \"2\"))\n",
            "stdout": "[1] \"double\"\n[1] \"character\"\n[1] 5\n[1] \"32\"\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "x",
                "type": "double",
                "representation": "3"
              },
              {
                "name": "y",
                "type": "character",
                "representation": "\"3\""
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "number-string",
        "title": {
          "ko": "숫자 3과 문자 3",
          "en": "Number three and text three"
        },
        "language": "r",
        "code": "x <- 3\ny <- \"3\"\nprint(typeof(x)); print(typeof(y))\nprint(x + 2)\nprint(paste0(y, \"2\"))\n",
        "codeFile": "data02-snippets/r/types-number-string.R",
        "codeSha256": "dd8bb0370f2cd9c36803d9b586a68d8cee450548a1654f84db9004e0bdac25e9",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1] \"double\"\n[1] \"character\"\n[1] 5\n[1] \"32\"\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "6ed1f3ad741d12bb6f4cde834898c0d8f611d4d3e54271608c4111fa6f53b550",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "integer-float": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "a <- 3L\nb <- 3\nprint(typeof(a)); print(typeof(b))\nprint(c(7 / 2, 7 %/% 2))\n",
            "stdout": "[1] \"integer\"\n[1] \"double\"\n[1] 3.5 3.0\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "a",
                "type": "integer",
                "representation": "3L"
              },
              {
                "name": "b",
                "type": "double",
                "representation": "3"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "integer-float",
        "title": {
          "ko": "정수와 실수의 나눗셈",
          "en": "Integer and floating-point division"
        },
        "language": "r",
        "code": "a <- 3L\nb <- 3\nprint(typeof(a)); print(typeof(b))\nprint(c(7 / 2, 7 %/% 2))\n",
        "codeFile": "data02-snippets/r/types-integer-float.R",
        "codeSha256": "1d3c65341b31738baf36d74a5e56fb6a5712c814e83e19efda181da7a2c51fd0",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1] \"integer\"\n[1] \"double\"\n[1] 3.5 3.0\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "e47e10ff9ed72778b6c6590cac5b25097723e16b00a57be484692263f1ba1b4b",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "mixed-container": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "values <- c(1, \"2\", TRUE)\nprint(values); print(typeof(values))\nseparate <- list(1, \"2\", TRUE)\nprint(vapply(separate, typeof, character(1)))\n",
            "stdout": "[1] \"1\"    \"2\"    \"TRUE\"\n[1] \"character\"\n[1] \"double\"    \"character\" \"logical\"  \n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "character",
                "representation": "c(\"1\", \"2\", \"TRUE\")"
              },
              {
                "name": "separate",
                "type": "list",
                "representation": "list(1, \"2\", TRUE)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "mixed-container",
        "title": {
          "ko": "서로 다른 자료형을 담기",
          "en": "Containers with mixed types"
        },
        "language": "r",
        "code": "values <- c(1, \"2\", TRUE)\nprint(values); print(typeof(values))\nseparate <- list(1, \"2\", TRUE)\nprint(vapply(separate, typeof, character(1)))\n",
        "codeFile": "data02-snippets/r/types-mixed-container.R",
        "codeSha256": "81d31b39710f388b6c09808f0a6683c017ff3cbeec3485cd45237f4aae1b46a7",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1] \"1\"    \"2\"    \"TRUE\"\n[1] \"character\"\n[1] \"double\"    \"character\" \"logical\"  \n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "ccabb1ace016c41d80ddf5f3fa5f45fd34aab54e9ec5c4fe00b0f7f4f7ba3d80",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "conversion": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "text <- \"3.5\"\nvalue <- as.numeric(text)\nprint(value + 1)\n",
            "stdout": "[1] 4.5\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "text",
                "type": "character",
                "representation": "\"3.5\""
              },
              {
                "name": "value",
                "type": "double",
                "representation": "3.5"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "conversion",
        "title": {
          "ko": "명시적으로 문자 숫자를 변환하기",
          "en": "Explicit numeric conversion"
        },
        "language": "r",
        "code": "text <- \"3.5\"\nvalue <- as.numeric(text)\nprint(value + 1)\n",
        "codeFile": "data02-snippets/r/types-conversion.R",
        "codeSha256": "2f2a34e593134180dbbae81f0aeeabd40f1e77b379b61622b432e97e0f72282b",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1] 4.5\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "55075e8c933b1404d97adf67e2ca2e16678996bba7be38c8a3aa25fc21ab6802",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "invalid-conversion": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "text <- \"three\"\nvalue <- as.numeric(text)\nprint(value)\n",
            "stdout": "[1] NA\n",
            "stderr": "NAs introduced by coercion\n",
            "error": null,
            "variables": [
              {
                "name": "text",
                "type": "character",
                "representation": "\"three\""
              },
              {
                "name": "value",
                "type": "double",
                "representation": "NA_real_"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "invalid-conversion",
        "title": {
          "ko": "변환할 수 없는 문자를 진단하기",
          "en": "Diagnose an invalid numeric conversion"
        },
        "language": "r",
        "code": "text <- \"three\"\nvalue <- as.numeric(text)\nprint(value)\n",
        "codeFile": "data02-snippets/r/types-invalid-conversion.R",
        "codeSha256": "672ef6bd5ed45d30cf8c7b80423c8d35426904fe80623ccd4b1dd5fcb388f3e0",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1] NA\n",
        "stderr": "NAs introduced by coercion\n",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "5641b730eb625ecc99a374fb0329f9d10da9e0d7228088c61d34237f749760f0",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "comparison": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "x <- 3\nprint(x == 3); print(x > 4)\n",
            "stdout": "[1] TRUE\n[1] FALSE\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "x",
                "type": "double",
                "representation": "3"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "comparison",
        "title": {
          "ko": "할당과 비교를 구별하기",
          "en": "Assignment differs from comparison"
        },
        "language": "r",
        "code": "x <- 3\nprint(x == 3); print(x > 4)\n",
        "codeFile": "data02-snippets/r/types-comparison.R",
        "codeSha256": "1ff2c55a69ea6c74011c154d6e013e80920e27869edd5474b7065df8d6ad757f",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1] TRUE\n[1] FALSE\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "219cfa304513e00b1115f4b3dc9e8f1fb4d18e78ea83b388a3279486c46e5918",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "vector-arithmetic": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "values <- c(1, 2, 3)\nprint(values * 2)\n",
            "stdout": "[1] 2 4 6\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "double",
                "representation": "c(1, 2, 3)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "vector-arithmetic",
        "title": {
          "ko": "리스트 반복과 벡터 연산",
          "en": "List repetition versus vector arithmetic"
        },
        "language": "r",
        "code": "values <- c(1, 2, 3)\nprint(values * 2)\n",
        "codeFile": "data02-snippets/r/types-vector-arithmetic.R",
        "codeSha256": "0ca62c08e206b665c565a46eef76d58e09c63d93e3f14b221748121c14dbcf0e",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1] 2 4 6\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "eed1e6e9650525ae61223e46e8bfd0ece241351b81930d77445ce8f93de3bb38",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "empty": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "values <- numeric(0)\nprint(typeof(values)); print(length(values))\n",
            "stdout": "[1] \"double\"\n[1] 0\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "double",
                "representation": "numeric(0)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "empty",
        "title": {
          "ko": "빈 자료도 자료형과 길이가 있다",
          "en": "Empty objects still have a type and length"
        },
        "language": "r",
        "code": "values <- numeric(0)\nprint(typeof(values)); print(length(values))\n",
        "codeFile": "data02-snippets/r/types-empty.R",
        "codeSha256": "edf0bc5ae78e1361f34116d9af3c8389fd4fa82b2971f0597e4315d8ba7e0a0d",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1] \"double\"\n[1] 0\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "330b8fe6ab2664936d7b2d552e4670e5b15df7b8d27621a7a866dd4732305083",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "decimal": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "value <- 0.1 + 0.2\nprint(sprintf(\"%.17g\", value))\nprint(value == 0.3)\n",
            "stdout": "[1] \"0.30000000000000004\"\n[1] FALSE\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "value",
                "type": "double",
                "representation": "0.3"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "decimal",
        "title": {
          "ko": "십진수 덧셈과 기계 저장",
          "en": "Decimal addition and machine representation"
        },
        "language": "r",
        "code": "value <- 0.1 + 0.2\nprint(sprintf(\"%.17g\", value))\nprint(value == 0.3)\n",
        "codeFile": "data02-snippets/r/types-decimal.R",
        "codeSha256": "1a684006dee4e5b8ad30d589b81b0c37c4e1f1d275d1dba7b770bd6ccc9989b3",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1] \"0.30000000000000004\"\n[1] FALSE\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "3c93f894055dd8bee78fd8908740c55359b2a1a37b21b17ca522344f2f3f36c6",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      }
    }
  },
  "indexing": {
    "python": {
      "first": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "values = [10, 20, 30, 40]\nprint(values[0])\n",
            "stdout": "10\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "list",
                "representation": "[10, 20, 30, 40]"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "first",
        "title": {
          "ko": "첫 값을 고르기",
          "en": "Select the first value"
        },
        "language": "python",
        "code": "values = [10, 20, 30, 40]\nprint(values[0])\n",
        "codeFile": "data02-snippets/python/indexing-first.py",
        "codeSha256": "78b4319f83f172147df4853e911aaf3e15c3b95988b11faa404dd32e9e70fde9",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "10\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "last": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "values = [10, 20, 30, 40]\nprint(values[-1])\n",
            "stdout": "40\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "list",
                "representation": "[10, 20, 30, 40]"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "last",
        "title": {
          "ko": "마지막 값을 고르기",
          "en": "Select the last value"
        },
        "language": "python",
        "code": "values = [10, 20, 30, 40]\nprint(values[-1])\n",
        "codeFile": "data02-snippets/python/indexing-last.py",
        "codeSha256": "0a14dc1873020370709bbb72a48a649767314c5486308fc9f51942d6c378cff5",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "40\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "negative": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "values = [10, 20, 30, 40]\nprint(values[-1])\n",
            "stdout": "40\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "list",
                "representation": "[10, 20, 30, 40]"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "negative",
        "title": {
          "ko": "음수 인덱스의 다른 뜻",
          "en": "Different meanings of a negative index"
        },
        "language": "python",
        "code": "values = [10, 20, 30, 40]\nprint(values[-1])\n",
        "codeFile": "data02-snippets/python/indexing-negative.py",
        "codeSha256": "0a14dc1873020370709bbb72a48a649767314c5486308fc9f51942d6c378cff5",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "40\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "slice": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "values = [10, 20, 30, 40]\nprint(values[0:2])\n",
            "stdout": "[10, 20]\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "list",
                "representation": "[10, 20, 30, 40]"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "slice",
        "title": {
          "ko": "처음 두 값을 고르는 경계",
          "en": "Boundaries for the first two values"
        },
        "language": "python",
        "code": "values = [10, 20, 30, 40]\nprint(values[0:2])\n",
        "codeFile": "data02-snippets/python/indexing-slice.py",
        "codeSha256": "f3b85cdbc97fac6726cc4a1915e145c9271b66bfc458cf490e86e3b75e696803",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[10, 20]\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "out-of-range": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "values = [10, 20, 30, 40]\nprint(values[4])\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "IndexError",
              "message": "list index out of range"
            },
            "variables": [
              {
                "name": "values",
                "type": "list",
                "representation": "[10, 20, 30, 40]"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "out-of-range",
        "title": {
          "ko": "범위 밖 위치",
          "en": "An out-of-range position"
        },
        "language": "python",
        "code": "values = [10, 20, 30, 40]\nprint(values[4])\n",
        "codeFile": "data02-snippets/python/indexing-out-of-range.py",
        "codeSha256": "d4827af28df42575681cfb627e317e120659d27f53f38bfc3ebfb9b1d2f6ae74",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "IndexError",
          "message": "list index out of range"
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "zero": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "values = [10, 20, 30, 40]\nprint(values[0])\n",
            "stdout": "10\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "list",
                "representation": "[10, 20, 30, 40]"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "zero",
        "title": {
          "ko": "0을 인덱스로 쓸 때",
          "en": "Using zero as an index"
        },
        "language": "python",
        "code": "values = [10, 20, 30, 40]\nprint(values[0])\n",
        "codeFile": "data02-snippets/python/indexing-zero.py",
        "codeSha256": "78b4319f83f172147df4853e911aaf3e15c3b95988b11faa404dd32e9e70fde9",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "10\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "mask": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "values = [10, 20, 30, 40]\nselected = [x for x in values if x >= 25]\nprint(selected)\n",
            "stdout": "[30, 40]\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "list",
                "representation": "[10, 20, 30, 40]"
              },
              {
                "name": "selected",
                "type": "list",
                "representation": "[30, 40]"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "mask",
        "title": {
          "ko": "조건을 만족하는 값 선택",
          "en": "Select values satisfying a condition"
        },
        "language": "python",
        "code": "values = [10, 20, 30, 40]\nselected = [x for x in values if x >= 25]\nprint(selected)\n",
        "codeFile": "data02-snippets/python/indexing-mask.py",
        "codeSha256": "1d624ab30f4ae86bcb2bf7db908d6b01c20b44329318341dbfc5a94fef997523",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[30, 40]\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "empty-sequence": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "values = []\nprint(list(range(len(values))))\n",
            "stdout": "[]\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "list",
                "representation": "[]"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "empty-sequence",
        "title": {
          "ko": "길이 0에서 안전한 반복",
          "en": "Safe iteration at length zero"
        },
        "language": "python",
        "code": "values = []\nprint(list(range(len(values))))\n",
        "codeFile": "data02-snippets/python/indexing-empty-sequence.py",
        "codeSha256": "22e64a9bdef272072002933947053485b95f8e40a4ef56b38a908c66eb023f4d",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[]\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "named": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "record = {\"source_row\": 42, \"before\": 11.0}\nprint(record[\"before\"])\n",
            "stdout": "11.0\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "record",
                "type": "dict",
                "representation": "{'source_row': 42, 'before': 11.0}"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "named",
        "title": {
          "ko": "이름으로 같은 관측값 읽기",
          "en": "Read a value by its field name"
        },
        "language": "python",
        "code": "record = {\"source_row\": 42, \"before\": 11.0}\nprint(record[\"before\"])\n",
        "codeFile": "data02-snippets/python/indexing-named.py",
        "codeSha256": "b037dcb32101fcf547ada7a8348514dcffd115cec0248578dcc9b583150aec73",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "11.0\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      }
    },
    "r": {
      "first": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "values <- c(10, 20, 30, 40)\nprint(values[1])\n",
            "stdout": "[1] 10\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "double",
                "representation": "c(10, 20, 30, 40)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "first",
        "title": {
          "ko": "첫 값을 고르기",
          "en": "Select the first value"
        },
        "language": "r",
        "code": "values <- c(10, 20, 30, 40)\nprint(values[1])\n",
        "codeFile": "data02-snippets/r/indexing-first.R",
        "codeSha256": "381ebb814c719ef8e4e6b07f95fd8d5bf608292be262c3d589e5300c11dfa369",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1] 10\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "a65fd2d2a582ebae593a95744f7863cb02b5c4b87608d410b1ae67878adf7aef",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "last": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "values <- c(10, 20, 30, 40)\nprint(values[length(values)])\n",
            "stdout": "[1] 40\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "double",
                "representation": "c(10, 20, 30, 40)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "last",
        "title": {
          "ko": "마지막 값을 고르기",
          "en": "Select the last value"
        },
        "language": "r",
        "code": "values <- c(10, 20, 30, 40)\nprint(values[length(values)])\n",
        "codeFile": "data02-snippets/r/indexing-last.R",
        "codeSha256": "0d359a9572c64c527eed53a2497e09011451c78143c2fefc3e2a260aba477fc8",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1] 40\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "d53be773dbd237b5684c9c143db784dd78d1598b562e8dacefe13e0ed3e2b4c7",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "negative": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "values <- c(10, 20, 30, 40)\nprint(values[-1])\n",
            "stdout": "[1] 20 30 40\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "double",
                "representation": "c(10, 20, 30, 40)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "negative",
        "title": {
          "ko": "음수 인덱스의 다른 뜻",
          "en": "Different meanings of a negative index"
        },
        "language": "r",
        "code": "values <- c(10, 20, 30, 40)\nprint(values[-1])\n",
        "codeFile": "data02-snippets/r/indexing-negative.R",
        "codeSha256": "b5fc483ca37f38385fff6169251696c11b4256c0365846d0df80a17ed8d8c20a",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1] 20 30 40\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "2eff8a91401147cbda55b6406007d3c543b80d86b6d556038992b8e88653cb4c",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "slice": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "values <- c(10, 20, 30, 40)\nprint(values[1:2])\n",
            "stdout": "[1] 10 20\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "double",
                "representation": "c(10, 20, 30, 40)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "slice",
        "title": {
          "ko": "처음 두 값을 고르는 경계",
          "en": "Boundaries for the first two values"
        },
        "language": "r",
        "code": "values <- c(10, 20, 30, 40)\nprint(values[1:2])\n",
        "codeFile": "data02-snippets/r/indexing-slice.R",
        "codeSha256": "102d765521be775feecf3a21a43325af57610a3179fe8c91c00b39be3b668775",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1] 10 20\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "b807ec78a7db103c0f6033689f466c2f9eb36fb61cf5d7dafaa4ccc3bcfb37e2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "out-of-range": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "values <- c(10, 20, 30, 40)\nprint(values[5])\n",
            "stdout": "[1] NA\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "double",
                "representation": "c(10, 20, 30, 40)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "out-of-range",
        "title": {
          "ko": "범위 밖 위치",
          "en": "An out-of-range position"
        },
        "language": "r",
        "code": "values <- c(10, 20, 30, 40)\nprint(values[5])\n",
        "codeFile": "data02-snippets/r/indexing-out-of-range.R",
        "codeSha256": "604af9988b1313f135cce6a2f664defdda0ffd424150d6fcedd12fa4918f94ac",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1] NA\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "b0e193e2bf764024c9c729d748bb8e67c2f956889061d954b6ff4c767e854766",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "zero": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "values <- c(10, 20, 30, 40)\nprint(values[0])\n",
            "stdout": "numeric(0)\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "double",
                "representation": "c(10, 20, 30, 40)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "zero",
        "title": {
          "ko": "0을 인덱스로 쓸 때",
          "en": "Using zero as an index"
        },
        "language": "r",
        "code": "values <- c(10, 20, 30, 40)\nprint(values[0])\n",
        "codeFile": "data02-snippets/r/indexing-zero.R",
        "codeSha256": "fd7fa34a97e3a8e4d7cc839a89f1ee3a1ef8bf788c2dc07163f6d3a5c25c1e92",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "numeric(0)\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "4843e30ed9ff85143a15755629dbf88b014ae5877f8fc9a684e8c948799eb8fe",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "mask": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "values <- c(10, 20, 30, 40)\nselected <- values[values >= 25]\nprint(selected)\n",
            "stdout": "[1] 30 40\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "double",
                "representation": "c(10, 20, 30, 40)"
              },
              {
                "name": "selected",
                "type": "double",
                "representation": "c(30, 40)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "mask",
        "title": {
          "ko": "조건을 만족하는 값 선택",
          "en": "Select values satisfying a condition"
        },
        "language": "r",
        "code": "values <- c(10, 20, 30, 40)\nselected <- values[values >= 25]\nprint(selected)\n",
        "codeFile": "data02-snippets/r/indexing-mask.R",
        "codeSha256": "1506bc692075f6ffecc76e22aacf6c3eb7b17d88730f8041537e0454fdeae2a7",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1] 30 40\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "5ca6bd8f7b3d43316131d787cfc598968039655b1e533bed26405a4f6c5440cd",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "empty-sequence": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "values <- numeric(0)\nprint(seq_along(values)); print(1:length(values))\n",
            "stdout": "integer(0)\n[1] 1 0\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "double",
                "representation": "numeric(0)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "empty-sequence",
        "title": {
          "ko": "길이 0에서 안전한 반복",
          "en": "Safe iteration at length zero"
        },
        "language": "r",
        "code": "values <- numeric(0)\nprint(seq_along(values)); print(1:length(values))\n",
        "codeFile": "data02-snippets/r/indexing-empty-sequence.R",
        "codeSha256": "5f1630e7038e4e137ab1afa87c58f6940676a70ed6f365568bdfde616acf0955",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "integer(0)\n[1] 1 0\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "ed7ba1c418cd4fc5ebd11e6e329f0bc2e814f3f15a19841febbd827a569fe7ab",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "named": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "record <- list(source_row=42, before=11)\nprint(record$before)\n",
            "stdout": "[1] 11\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "record",
                "type": "list",
                "representation": "list(source_row = 42, before = 11)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "named",
        "title": {
          "ko": "이름으로 같은 관측값 읽기",
          "en": "Read a value by its field name"
        },
        "language": "r",
        "code": "record <- list(source_row=42, before=11)\nprint(record$before)\n",
        "codeFile": "data02-snippets/r/indexing-named.R",
        "codeSha256": "e23967b5d59b09e9da08724901c190a09ae731c8d19b14bb7bf6a3290e56fb88",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1] 11\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "ce6d859c499553ae7b02d525f41619c2a23b2e0dea5125855814e906d9232c4c",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      }
    }
  },
  "functions": {
    "python": {
      "return": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "def average(values):\n    return sum(values) / len(values)\nanswer = average([2, 4, 6])\nprint(answer)\n",
            "stdout": "4.0\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              },
              {
                "name": "answer",
                "type": "float",
                "representation": "4.0"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "return",
        "title": {
          "ko": "함수의 입력과 반환값",
          "en": "Function inputs and returned values"
        },
        "language": "python",
        "code": "def average(values):\n    return sum(values) / len(values)\nanswer = average([2, 4, 6])\nprint(answer)\n",
        "codeFile": "data02-snippets/python/functions-return.py",
        "codeSha256": "ba8f91968da57337c86f2b3aa906e69f10741424c402758a260dcb1845b51a97",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "4.0\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "print-return": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "def display_average(values):\n    print(sum(values) / len(values))\nanswer = display_average([2, 4, 6])\nprint(answer)\n",
            "stdout": "4.0\nNone\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "display_average",
                "type": "function",
                "representation": "<function display_average>"
              },
              {
                "name": "answer",
                "type": "NoneType",
                "representation": "None"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "print-return",
        "title": {
          "ko": "화면 출력과 반환을 나누기",
          "en": "Printed output differs from a return value"
        },
        "language": "python",
        "code": "def display_average(values):\n    print(sum(values) / len(values))\nanswer = display_average([2, 4, 6])\nprint(answer)\n",
        "codeFile": "data02-snippets/python/functions-print-return.py",
        "codeSha256": "f2434e451a71349e03fbbd664b4a2d4ed9a9093761a7cfc7df84ae4b783f85ac",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "4.0\nNone\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "implicit-return": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "def double(value):\n    value * 2\nanswer = double(3)\nprint(answer)\n",
            "stdout": "None\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "double",
                "type": "function",
                "representation": "<function double>"
              },
              {
                "name": "answer",
                "type": "NoneType",
                "representation": "None"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "implicit-return",
        "title": {
          "ko": "마지막 식과 암묵적 반환의 차이",
          "en": "Different implicit-return rules"
        },
        "language": "python",
        "code": "def double(value):\n    value * 2\nanswer = double(3)\nprint(answer)\n",
        "codeFile": "data02-snippets/python/functions-implicit-return.py",
        "codeSha256": "1a489492bf3da2a7eae48afcd77d6c9f2936660d2dd1d1efd504c6f4f82d5934",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "None\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "scope": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "x = 100\ndef plus_one(x):\n    x = x + 1\n    return x\nanswer = plus_one(3)\nprint(answer, x)\n",
            "stdout": "4 100\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "x",
                "type": "int",
                "representation": "100"
              },
              {
                "name": "plus_one",
                "type": "function",
                "representation": "<function plus_one>"
              },
              {
                "name": "answer",
                "type": "int",
                "representation": "4"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "scope",
        "title": {
          "ko": "지역 이름과 바깥 이름",
          "en": "Local and outer bindings"
        },
        "language": "python",
        "code": "x = 100\ndef plus_one(x):\n    x = x + 1\n    return x\nanswer = plus_one(3)\nprint(answer, x)\n",
        "codeFile": "data02-snippets/python/functions-scope.py",
        "codeSha256": "df4eca33695ccb621d49e00b2fa3c002d4aefedd40864acba6d87bb6f11dab92",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "4 100\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "named-arguments": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "def convert(value, scale=1, shift=0):\n    return value * scale + shift\nanswer = convert(20, shift=32, scale=9/5)\nprint(answer)\n",
            "stdout": "68.0\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "convert",
                "type": "function",
                "representation": "<function convert>"
              },
              {
                "name": "answer",
                "type": "float",
                "representation": "68.0"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "named-arguments",
        "title": {
          "ko": "단위 변환 함수의 인자",
          "en": "Arguments in a unit-conversion function"
        },
        "language": "python",
        "code": "def convert(value, scale=1, shift=0):\n    return value * scale + shift\nanswer = convert(20, shift=32, scale=9/5)\nprint(answer)\n",
        "codeFile": "data02-snippets/python/functions-named-arguments.py",
        "codeSha256": "6081f8ac39c3f1beefde66d984c00cf436ee7a3aeeb4784294db944e38233543",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "68.0\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "empty-error": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "def average(values):\n    return sum(values) / len(values)\nanswer = average([])\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "ZeroDivisionError",
              "message": "division by zero"
            },
            "variables": [
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "empty-error",
        "title": {
          "ko": "빈 평균을 그대로 나누면",
          "en": "Dividing an empty mean without a guard"
        },
        "language": "python",
        "code": "def average(values):\n    return sum(values) / len(values)\nanswer = average([])\n",
        "codeFile": "data02-snippets/python/functions-empty-error.py",
        "codeSha256": "2220df14c5f849ac6564e9a49c301ae062868de65f0686ad76abf5a345f1044c",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "ZeroDivisionError",
          "message": "division by zero"
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "empty-guard": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "def average(values):\n    if len(values) == 0:\n        return None\n    return sum(values) / len(values)\nanswer = average([])\nprint(answer)\n",
            "stdout": "None\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "average",
                "type": "function",
                "representation": "<function average>"
              },
              {
                "name": "answer",
                "type": "NoneType",
                "representation": "None"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "empty-guard",
        "title": {
          "ko": "빈 자료를 명시적으로 처리하기",
          "en": "Handle an empty input explicitly"
        },
        "language": "python",
        "code": "def average(values):\n    if len(values) == 0:\n        return None\n    return sum(values) / len(values)\nanswer = average([])\nprint(answer)\n",
        "codeFile": "data02-snippets/python/functions-empty-guard.py",
        "codeSha256": "a3d2fb2ae0239806303145b0adc6e4f217512395ea01a241813535024203afb9",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "None\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "validation": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "def kg_to_g(value):\n    if not isinstance(value, (int, float)) or isinstance(value, bool):\n        raise TypeError(\"value must be numeric\")\n    return value * 1000\nanswer = kg_to_g(\"4.2\")\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "TypeError",
              "message": "value must be numeric"
            },
            "variables": [
              {
                "name": "kg_to_g",
                "type": "function",
                "representation": "<function kg_to_g>"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "validation",
        "title": {
          "ko": "잘못된 측정 단위 입력 거부",
          "en": "Reject an invalid measurement input"
        },
        "language": "python",
        "code": "def kg_to_g(value):\n    if not isinstance(value, (int, float)) or isinstance(value, bool):\n        raise TypeError(\"value must be numeric\")\n    return value * 1000\nanswer = kg_to_g(\"4.2\")\n",
        "codeFile": "data02-snippets/python/functions-validation.py",
        "codeSha256": "2814a2c1b7c41a9f3db74d610b8e5d191f42e2a968c348205bf794f5cb8cfc6e",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "TypeError",
          "message": "value must be numeric"
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      }
    },
    "r": {
      "return": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "average <- function(values) {\n  return(sum(values) / length(values))\n}\nanswer <- average(c(2, 4, 6))\nprint(answer)\n",
            "stdout": "[1] 4\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \n{\n    return(sum(values)/length(values))\n}"
              },
              {
                "name": "answer",
                "type": "double",
                "representation": "4"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "return",
        "title": {
          "ko": "함수의 입력과 반환값",
          "en": "Function inputs and returned values"
        },
        "language": "r",
        "code": "average <- function(values) {\n  return(sum(values) / length(values))\n}\nanswer <- average(c(2, 4, 6))\nprint(answer)\n",
        "codeFile": "data02-snippets/r/functions-return.R",
        "codeSha256": "5043d6a7b375eae16160f9a15aa0f2243d2d42c9a8a7575e0b88f1791b277071",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1] 4\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "9ee9de575bb538cc7cedd07e5d70106192f09d042a4b43a4bfac3d1784364c96",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "print-return": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "display_average <- function(values) {\n  cat(sum(values) / length(values), \"\\n\")\n}\nanswer <- display_average(c(2, 4, 6))\nprint(answer)\n",
            "stdout": "4 \nNULL\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "display_average",
                "type": "closure",
                "representation": "function (values) \n{\n    cat(sum(values)/length(values), \"\\n\")\n}"
              },
              {
                "name": "answer",
                "type": "NULL",
                "representation": "NULL"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "print-return",
        "title": {
          "ko": "화면 출력과 반환을 나누기",
          "en": "Printed output differs from a return value"
        },
        "language": "r",
        "code": "display_average <- function(values) {\n  cat(sum(values) / length(values), \"\\n\")\n}\nanswer <- display_average(c(2, 4, 6))\nprint(answer)\n",
        "codeFile": "data02-snippets/r/functions-print-return.R",
        "codeSha256": "1edb4ac7a9817a98a09806261b12e3fb67e385e4a2403197b0eec2cb9b691e0e",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "4 \nNULL\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "e4103eaeff6f39db00c1a4759a80d2837a3324228e7f24a69e79835803eebd06",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "implicit-return": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "double <- function(value) {\n  value * 2\n}\nanswer <- double(3)\nprint(answer)\n",
            "stdout": "[1] 6\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "double",
                "type": "closure",
                "representation": "function (value) \n{\n    value * 2\n}"
              },
              {
                "name": "answer",
                "type": "double",
                "representation": "6"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "implicit-return",
        "title": {
          "ko": "마지막 식과 암묵적 반환의 차이",
          "en": "Different implicit-return rules"
        },
        "language": "r",
        "code": "double <- function(value) {\n  value * 2\n}\nanswer <- double(3)\nprint(answer)\n",
        "codeFile": "data02-snippets/r/functions-implicit-return.R",
        "codeSha256": "7bd8aae4041c2bc10772590ff30e51a4ee5a23414f01cc1f40c5efb44f72ed7d",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1] 6\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "5e57da08b13d3ad432a7d94fe80a464b0b66c6da9515c7bdf6513595b57c177d",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "scope": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "x <- 100\nplus_one <- function(x) {\n  x <- x + 1\n  return(x)\n}\nanswer <- plus_one(3)\nprint(c(answer, x))\n",
            "stdout": "[1]   4 100\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "x",
                "type": "double",
                "representation": "100"
              },
              {
                "name": "plus_one",
                "type": "closure",
                "representation": "function (x) \n{\n    x <- x + 1\n    return(x)\n}"
              },
              {
                "name": "answer",
                "type": "double",
                "representation": "4"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "scope",
        "title": {
          "ko": "지역 이름과 바깥 이름",
          "en": "Local and outer bindings"
        },
        "language": "r",
        "code": "x <- 100\nplus_one <- function(x) {\n  x <- x + 1\n  return(x)\n}\nanswer <- plus_one(3)\nprint(c(answer, x))\n",
        "codeFile": "data02-snippets/r/functions-scope.R",
        "codeSha256": "322a645ddeb1163c028e71c0b3edcd5516fd5a5ef42c16f970c207c19ba5b875",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1]   4 100\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "3c061fac6192936ab1b88cb06aba13d627b24a9b16105f1ea132ecaa52bafde0",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "named-arguments": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "convert <- function(value, scale=1, shift=0) {\n  value * scale + shift\n}\nanswer <- convert(20, shift=32, scale=9/5)\nprint(answer)\n",
            "stdout": "[1] 68\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "convert",
                "type": "closure",
                "representation": "function (value, scale = 1, shift = 0) \n{\n    value * scale + shift\n}"
              },
              {
                "name": "answer",
                "type": "double",
                "representation": "68"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "named-arguments",
        "title": {
          "ko": "단위 변환 함수의 인자",
          "en": "Arguments in a unit-conversion function"
        },
        "language": "r",
        "code": "convert <- function(value, scale=1, shift=0) {\n  value * scale + shift\n}\nanswer <- convert(20, shift=32, scale=9/5)\nprint(answer)\n",
        "codeFile": "data02-snippets/r/functions-named-arguments.R",
        "codeSha256": "98afe3f5b09e91daf9ed7f36fc29a9a0c977dd8ee375f95ff8e1865f5adf3ae9",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1] 68\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "0a227a87759ae589b524bfad84b4f94484af51a5c2fb7509caa66ae77cf2397c",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "empty-error": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "average <- function(values) sum(values) / length(values)\nanswer <- average(numeric(0))\nprint(answer)\n",
            "stdout": "[1] NaN\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \nsum(values)/length(values)"
              },
              {
                "name": "answer",
                "type": "double",
                "representation": "NaN"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "empty-error",
        "title": {
          "ko": "빈 평균을 그대로 나누면",
          "en": "Dividing an empty mean without a guard"
        },
        "language": "r",
        "code": "average <- function(values) sum(values) / length(values)\nanswer <- average(numeric(0))\nprint(answer)\n",
        "codeFile": "data02-snippets/r/functions-empty-error.R",
        "codeSha256": "1bf9a649ca97dc6192f06f46b148a2867e4e623198503eb3b8298dd070a35fc7",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1] NaN\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "ec0f557b1ad35ef697366d6f69f25b0c2f45837fcf1bb608245c5f25b2a5e278",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "empty-guard": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "average <- function(values) {\n  if (length(values) == 0) return(NA_real_)\n  sum(values) / length(values)\n}\nanswer <- average(numeric(0))\nprint(answer)\n",
            "stdout": "[1] NA\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "average",
                "type": "closure",
                "representation": "function (values) \n{\n    if (length(values) == 0) \n        return(NA_real_)\n    sum(values)/length(values)\n}"
              },
              {
                "name": "answer",
                "type": "double",
                "representation": "NA_real_"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "empty-guard",
        "title": {
          "ko": "빈 자료를 명시적으로 처리하기",
          "en": "Handle an empty input explicitly"
        },
        "language": "r",
        "code": "average <- function(values) {\n  if (length(values) == 0) return(NA_real_)\n  sum(values) / length(values)\n}\nanswer <- average(numeric(0))\nprint(answer)\n",
        "codeFile": "data02-snippets/r/functions-empty-guard.R",
        "codeSha256": "a714eff95c8ba128e3852ed14d9aeb30653b75ff413b83182f25cc4a9cd27f03",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1] NA\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "7abf416d7dc67cffbe461a8583040f79bc88f85e82dd9595553ffe4764a9b538",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "validation": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "kg_to_g <- function(value) {\n  if (!is.numeric(value) || length(value) != 1L) stop(\"value must be one numeric value\")\n  value * 1000\n}\nanswer <- kg_to_g(\"4.2\")\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "simpleError",
              "message": "value must be one numeric value"
            },
            "variables": [
              {
                "name": "kg_to_g",
                "type": "closure",
                "representation": "function (value) \n{\n    if (!is.numeric(value) || length(value) != 1L) \n        stop(\"value must be one numeric value\")\n    value * 1000\n}"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "validation",
        "title": {
          "ko": "잘못된 측정 단위 입력 거부",
          "en": "Reject an invalid measurement input"
        },
        "language": "r",
        "code": "kg_to_g <- function(value) {\n  if (!is.numeric(value) || length(value) != 1L) stop(\"value must be one numeric value\")\n  value * 1000\n}\nanswer <- kg_to_g(\"4.2\")\n",
        "codeFile": "data02-snippets/r/functions-validation.R",
        "codeSha256": "a7c00eac8ecd4250ee999ff871a00d2c5cb6b5178122d565ea4b37f828a17d63",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "simpleError",
          "message": "value must be one numeric value"
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "97653a904de21aa1e6fbb1c8629bb5a80e61fb9fe6adbd04d36678bc511a58bb",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      }
    }
  },
  "missing": {
    "python": {
      "marker": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "values = [2, None, 4, 0]\nprint(values)\nprint([x is None for x in values])\n",
            "stdout": "[2, None, 4, 0]\n[False, True, False, False]\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "list",
                "representation": "[2, None, 4, 0]"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "marker",
        "title": {
          "ko": "미관측 표식과 관측값 0",
          "en": "Missing markers differ from observed zero"
        },
        "language": "python",
        "code": "values = [2, None, 4, 0]\nprint(values)\nprint([x is None for x in values])\n",
        "codeFile": "data02-snippets/python/missing-marker.py",
        "codeSha256": "6ed843bcec05efdd658d6316f68002b2a06b4c2ba09739f5c1c966994f336f15",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[2, None, 4, 0]\n[False, True, False, False]\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "mean": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "values = [2, None, 4, 0]\nvalid = [x for x in values if x is not None]\nanswer = sum(valid) / len(valid) if valid else None\nprint(len(values), len(valid), answer)\n",
            "stdout": "4 3 2.0\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "list",
                "representation": "[2, None, 4, 0]"
              },
              {
                "name": "valid",
                "type": "list",
                "representation": "[2, 4, 0]"
              },
              {
                "name": "answer",
                "type": "float",
                "representation": "2.0"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "mean",
        "title": {
          "ko": "가용값과 분모를 함께 계산",
          "en": "Count available values with their mean"
        },
        "language": "python",
        "code": "values = [2, None, 4, 0]\nvalid = [x for x in values if x is not None]\nanswer = sum(valid) / len(valid) if valid else None\nprint(len(values), len(valid), answer)\n",
        "codeFile": "data02-snippets/python/missing-mean.py",
        "codeSha256": "efa33f0e335438283c54f5aeb33bc3dfa1fa048da14b56b1e20f910fe7e0adf6",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "4 3 2.0\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "direct-mean": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "values = [2, None, 4]\nprint(sum(values) / len(values))\n",
            "stdout": "",
            "stderr": "",
            "error": {
              "type": "TypeError",
              "message": "unsupported operand type(s) for +: 'int' and 'NoneType'"
            },
            "variables": [
              {
                "name": "values",
                "type": "list",
                "representation": "[2, None, 4]"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "direct-mean",
        "title": {
          "ko": "표식을 처리하지 않고 평균 내기",
          "en": "A mean without handling its missing marker"
        },
        "language": "python",
        "code": "values = [2, None, 4]\nprint(sum(values) / len(values))\n",
        "codeFile": "data02-snippets/python/missing-direct-mean.py",
        "codeSha256": "579a2022a9151d1bef336460b14a6ef8395960842005b2f46506ee0b7898773e",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "",
        "stderr": "",
        "error": {
          "type": "TypeError",
          "message": "unsupported operand type(s) for +: 'int' and 'NoneType'"
        },
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "nan-comparison": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "import math\nvalue = float(\"nan\")\nprint(value == value, math.isnan(value))\n",
            "stdout": "False True\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "value",
                "type": "float",
                "representation": "nan"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "nan-comparison",
        "title": {
          "ko": "NaN을 자기 자신과 비교",
          "en": "Compare NaN with itself"
        },
        "language": "python",
        "code": "import math\nvalue = float(\"nan\")\nprint(value == value, math.isnan(value))\n",
        "codeFile": "data02-snippets/python/missing-nan-comparison.py",
        "codeSha256": "fda188765dae18342d70d00ed4f46277138af330a0c8f1568e7c98b4091ee763",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "False True\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "none-na": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "value = None\nprint(value == None, value is None)\n",
            "stdout": "True True\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "value",
                "type": "NoneType",
                "representation": "None"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "none-na",
        "title": {
          "ko": "미관측 비교의 언어별 의미",
          "en": "Language-specific missing comparisons"
        },
        "language": "python",
        "code": "value = None\nprint(value == None, value is None)\n",
        "codeFile": "data02-snippets/python/missing-none-na.py",
        "codeSha256": "169b267c29f36f3b020b5b3403af651cbc4fc7eba0ee0f64ce08f1477a7c4d66",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "True True\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "null-empty": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "a = None\nb = [None]\nc = []\nprint(a, len(b), len(c))\n",
            "stdout": "None 1 0\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "a",
                "type": "NoneType",
                "representation": "None"
              },
              {
                "name": "b",
                "type": "list",
                "representation": "[None]"
              },
              {
                "name": "c",
                "type": "list",
                "representation": "[]"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "null-empty",
        "title": {
          "ko": "빈 객체와 미관측 원소",
          "en": "An empty object differs from one missing element"
        },
        "language": "python",
        "code": "a = None\nb = [None]\nc = []\nprint(a, len(b), len(c))\n",
        "codeFile": "data02-snippets/python/missing-null-empty.py",
        "codeSha256": "05875a627100cd2f1e55c9078362bb4255260c93b714621bffa24e0753ddb261",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "None 1 0\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "all-missing": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "values = [None, None]\nvalid = [x for x in values if x is not None]\nanswer = sum(valid) / len(valid) if valid else None\nprint(len(valid), answer)\n",
            "stdout": "0 None\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "list",
                "representation": "[None, None]"
              },
              {
                "name": "valid",
                "type": "list",
                "representation": "[]"
              },
              {
                "name": "answer",
                "type": "NoneType",
                "representation": "None"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "all-missing",
        "title": {
          "ko": "모든 값이 없을 때",
          "en": "When every value is unavailable"
        },
        "language": "python",
        "code": "values = [None, None]\nvalid = [x for x in values if x is not None]\nanswer = sum(valid) / len(valid) if valid else None\nprint(len(valid), answer)\n",
        "codeFile": "data02-snippets/python/missing-all-missing.py",
        "codeSha256": "ed0309e003eaa87bdd255e259a77c83d4d512fce5c46256ebc701a638864ef56",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "0 None\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "nonfinite": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "import math\nvalues = [float(\"nan\"), float(\"inf\"), 2.0]\nprint([math.isnan(x) for x in values])\nprint([math.isfinite(x) for x in values])\n",
            "stdout": "[True, False, False]\n[False, False, True]\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "list",
                "representation": "[nan, inf, 2.0]"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "nonfinite",
        "title": {
          "ko": "결측 판정과 유한값 판정",
          "en": "Missingness and finiteness are different checks"
        },
        "language": "python",
        "code": "import math\nvalues = [float(\"nan\"), float(\"inf\"), 2.0]\nprint([math.isnan(x) for x in values])\nprint([math.isfinite(x) for x in values])\n",
        "codeFile": "data02-snippets/python/missing-nonfinite.py",
        "codeSha256": "c6874c3a285a8c5c2479aa2881d09eaf9ff7e8c558d612192aba2e72fb74b674",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[True, False, False]\n[False, False, True]\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "zero-fill": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "values = [2, None, 4]\nfilled = [0 if x is None else x for x in values]\nprint(sum(filled) / len(filled))\n",
            "stdout": "2.0\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "list",
                "representation": "[2, None, 4]"
              },
              {
                "name": "filled",
                "type": "list",
                "representation": "[2, 0, 4]"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "zero-fill",
        "title": {
          "ko": "0 채움이 바꾸는 목표",
          "en": "Zero filling changes the target"
        },
        "language": "python",
        "code": "values = [2, None, 4]\nfilled = [0 if x is None else x for x in values]\nprint(sum(filled) / len(filled))\n",
        "codeFile": "data02-snippets/python/missing-zero-fill.py",
        "codeSha256": "106b830ffb304f7119539835195e1c144379769287920385f49b7099cef3c21b",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "2.0\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      }
    },
    "r": {
      "marker": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "values <- c(2, NA_real_, 4, 0)\nprint(values); print(is.na(values))\n",
            "stdout": "[1]  2 NA  4  0\n[1] FALSE  TRUE FALSE FALSE\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "double",
                "representation": "c(2, NA, 4, 0)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "marker",
        "title": {
          "ko": "미관측 표식과 관측값 0",
          "en": "Missing markers differ from observed zero"
        },
        "language": "r",
        "code": "values <- c(2, NA_real_, 4, 0)\nprint(values); print(is.na(values))\n",
        "codeFile": "data02-snippets/r/missing-marker.R",
        "codeSha256": "10f56066fe26239f3f21ecceeb01a3c575cd03303d8029f8f50ec7965fa9d59f",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1]  2 NA  4  0\n[1] FALSE  TRUE FALSE FALSE\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "5aba8cae19b7443ba3989019f86a573fc16bbda5a7c2a43e8ed380186211f3cf",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "mean": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "values <- c(2, NA_real_, 4, 0)\nvalid <- values[!is.na(values)]\nanswer <- if(length(valid)) mean(valid) else NA_real_\nprint(c(n=length(values), valid=length(valid), mean=answer))\n",
            "stdout": "    n valid  mean \n    4     3     2 \n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "double",
                "representation": "c(2, NA, 4, 0)"
              },
              {
                "name": "valid",
                "type": "double",
                "representation": "c(2, 4, 0)"
              },
              {
                "name": "answer",
                "type": "double",
                "representation": "2"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "mean",
        "title": {
          "ko": "가용값과 분모를 함께 계산",
          "en": "Count available values with their mean"
        },
        "language": "r",
        "code": "values <- c(2, NA_real_, 4, 0)\nvalid <- values[!is.na(values)]\nanswer <- if(length(valid)) mean(valid) else NA_real_\nprint(c(n=length(values), valid=length(valid), mean=answer))\n",
        "codeFile": "data02-snippets/r/missing-mean.R",
        "codeSha256": "56dd0a4cb20b26964afba9e755cd585a293bbed1818e92c6875851fa1743fe42",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "    n valid  mean \n    4     3     2 \n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "0d971402da689b96bc252677113bea59c239d3eb3f4e70afffa5f6c98e9be0f6",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "direct-mean": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "values <- c(2, NA_real_, 4)\nprint(mean(values)); print(mean(values, na.rm=TRUE))\n",
            "stdout": "[1] NA\n[1] 3\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "double",
                "representation": "c(2, NA, 4)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "direct-mean",
        "title": {
          "ko": "표식을 처리하지 않고 평균 내기",
          "en": "A mean without handling its missing marker"
        },
        "language": "r",
        "code": "values <- c(2, NA_real_, 4)\nprint(mean(values)); print(mean(values, na.rm=TRUE))\n",
        "codeFile": "data02-snippets/r/missing-direct-mean.R",
        "codeSha256": "d6c59b1142261f9b56737226fa9f3524a801d0f4aed402cec8e597459a3ea2a2",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1] NA\n[1] 3\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "e0e404d315938164bf4faa4f43e1a48394aefe1c64630c895230dc23cbef3846",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "nan-comparison": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "value <- NaN\nprint(value == value); print(is.na(value)); print(is.nan(value))\n",
            "stdout": "[1] NA\n[1] TRUE\n[1] TRUE\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "value",
                "type": "double",
                "representation": "NaN"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "nan-comparison",
        "title": {
          "ko": "NaN을 자기 자신과 비교",
          "en": "Compare NaN with itself"
        },
        "language": "r",
        "code": "value <- NaN\nprint(value == value); print(is.na(value)); print(is.nan(value))\n",
        "codeFile": "data02-snippets/r/missing-nan-comparison.R",
        "codeSha256": "7f7a2cd335e6f77fb4be844ed53b57cb916bdf8d2d70afa89bde4489c46d76b0",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1] NA\n[1] TRUE\n[1] TRUE\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "977c38f44afc236182cea9066c4b9e768c75cf24ab7263c5c41cf2f9e9f4b793",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "none-na": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "value <- NA_real_\nprint(value == value); print(is.na(value)); print(is.nan(value))\n",
            "stdout": "[1] NA\n[1] TRUE\n[1] FALSE\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "value",
                "type": "double",
                "representation": "NA_real_"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "none-na",
        "title": {
          "ko": "미관측 비교의 언어별 의미",
          "en": "Language-specific missing comparisons"
        },
        "language": "r",
        "code": "value <- NA_real_\nprint(value == value); print(is.na(value)); print(is.nan(value))\n",
        "codeFile": "data02-snippets/r/missing-none-na.R",
        "codeSha256": "33e3a09eff7820789b1960c8ebf4747eff95be3f132db5ed708b39d54c1c75bb",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1] NA\n[1] TRUE\n[1] FALSE\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "b0fb33258e3f12843c73435f45a0533d05944dd0b99044cd34ee016da1c90f0e",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "null-empty": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "a <- NULL\nb <- NA_real_\nc <- numeric(0)\nprint(c(length(a), length(b), length(c)))\n",
            "stdout": "[1] 0 1 0\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "a",
                "type": "NULL",
                "representation": "NULL"
              },
              {
                "name": "b",
                "type": "double",
                "representation": "NA_real_"
              },
              {
                "name": "c",
                "type": "double",
                "representation": "numeric(0)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "null-empty",
        "title": {
          "ko": "빈 객체와 미관측 원소",
          "en": "An empty object differs from one missing element"
        },
        "language": "r",
        "code": "a <- NULL\nb <- NA_real_\nc <- numeric(0)\nprint(c(length(a), length(b), length(c)))\n",
        "codeFile": "data02-snippets/r/missing-null-empty.R",
        "codeSha256": "5ff28f33b93fa7870eb79e5e24eb0b1fea07ca9998c1fb62a0769a033cbd92f5",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1] 0 1 0\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "ab021e8e5ab4b805f3f38152a5523b4165f5e1315180b4c435698c4c5edfcb4d",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "all-missing": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "values <- c(NA_real_, NA_real_)\nvalid <- values[!is.na(values)]\nanswer <- if(length(valid)) mean(valid) else NA_real_\nprint(length(valid)); print(answer)\n",
            "stdout": "[1] 0\n[1] NA\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "double",
                "representation": "c(NA_real_, NA_real_)"
              },
              {
                "name": "valid",
                "type": "double",
                "representation": "numeric(0)"
              },
              {
                "name": "answer",
                "type": "double",
                "representation": "NA_real_"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "all-missing",
        "title": {
          "ko": "모든 값이 없을 때",
          "en": "When every value is unavailable"
        },
        "language": "r",
        "code": "values <- c(NA_real_, NA_real_)\nvalid <- values[!is.na(values)]\nanswer <- if(length(valid)) mean(valid) else NA_real_\nprint(length(valid)); print(answer)\n",
        "codeFile": "data02-snippets/r/missing-all-missing.R",
        "codeSha256": "ac0fbded90a0b97cd6b15615a95d9ac10b85ab6ee35ed90b3b59be6f270190ef",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1] 0\n[1] NA\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "aa76df2b8a3c8af85cd7ac47ea1f1406ce99d5cf77e803c31b8f2b7c988ab508",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "nonfinite": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "values <- c(NaN, Inf, 2)\nprint(is.na(values)); print(is.finite(values))\n",
            "stdout": "[1]  TRUE FALSE FALSE\n[1] FALSE FALSE  TRUE\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "double",
                "representation": "c(NaN, Inf, 2)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "nonfinite",
        "title": {
          "ko": "결측 판정과 유한값 판정",
          "en": "Missingness and finiteness are different checks"
        },
        "language": "r",
        "code": "values <- c(NaN, Inf, 2)\nprint(is.na(values)); print(is.finite(values))\n",
        "codeFile": "data02-snippets/r/missing-nonfinite.R",
        "codeSha256": "69b6376444d5a401e2d8b22ce11c910bbdb425858acf2fb679f5f51d1740c7cb",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1]  TRUE FALSE FALSE\n[1] FALSE FALSE  TRUE\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "7209583ba34a4adc1dd27a2cf7393a46d81ed5b03f6105ab9ddd4be02520e5fd",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "zero-fill": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "values <- c(2, NA_real_, 4)\nfilled <- values\nfilled[is.na(filled)] <- 0\nprint(mean(filled))\n",
            "stdout": "[1] 2\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "double",
                "representation": "c(2, NA, 4)"
              },
              {
                "name": "filled",
                "type": "double",
                "representation": "c(2, 0, 4)"
              }
            ],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          }
        ],
        "id": "zero-fill",
        "title": {
          "ko": "0 채움이 바꾸는 목표",
          "en": "Zero filling changes the target"
        },
        "language": "r",
        "code": "values <- c(2, NA_real_, 4)\nfilled <- values\nfilled[is.na(filled)] <- 0\nprint(mean(filled))\n",
        "codeFile": "data02-snippets/r/missing-zero-fill.R",
        "codeSha256": "f2270d84d73963d5dfad50c640ffce954b112dfa9d8ef286f02c6b3149f032fd",
        "inputSha256": "83f04067a1fdcf02b2a714f50f2100992e3abd3942f02a4ddc16881b14b5f6e0",
        "stdout": "[1] 2\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "357b40b8995a2f3750acd55155c797ebecded417a4451bf17e7ffa200c1ccfe1",
          "source": null,
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": true
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      }
    }
  },
  "realdata": {
    "python": {
      "country": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "from pathlib import Path\nimport csv\nsource = Path(__file__).resolve().parents[2] / 'data01-sources/actual16-country-2024-records-and-original-API-row-keys.csv'\nwith source.open(encoding='utf-8-sig', newline='') as stream:\n    records = list(csv.DictReader(stream))\nprint('rows', len(records))\nprint('first source row', records[0]['sourceRow'])\n",
            "stdout": "rows 16\nfirst source row 2161\n",
            "stderr": "",
            "error": null,
            "variables": [],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          },
          {
            "index": 2,
            "code": "def read_optional_number(text):\n    return None if text == '' else float(text)\nvalues = [read_optional_number(row['value']) for row in records]\nvalid = [value for value in values if value is not None]\nprint('total', len(values), 'available', len(valid), 'missing', len(values) - len(valid))\n",
            "stdout": "total 16 available 16 missing 0\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "list",
                "representation": "[61486.38147544, 9566.74518687619, 45061.3864587285, 13119.1076099516, 44027.7631554469, 39683.3953489029, 47900.9680144146, 4367.94741847938, 2366.8328910323, 37976.6371788298, 37048.4264001496, 10284.0336925726, 68129.6960402288, 66856.5131698371, 4012.50779921084, 5715.47531469148]"
              },
              {
                "name": "valid",
                "type": "list",
                "representation": "[61486.38147544, 9566.74518687619, 45061.3864587285, 13119.1076099516, 44027.7631554469, 39683.3953489029, 47900.9680144146, 4367.94741847938, 2366.8328910323, 37976.6371788298, 37048.4264001496, 10284.0336925726, 68129.6960402288, 66856.5131698371, 4012.50779921084, 5715.47531469148]"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            }
          },
          {
            "index": 3,
            "code": "def available_mean(values):\n    valid = [value for value in values if value is not None]\n    return sum(valid) / len(valid) if valid else None\nanswer = available_mean(values)\nprint('available mean', answer)\n",
            "stdout": "available mean 31100.238572174534\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "list",
                "representation": "[61486.38147544, 9566.74518687619, 45061.3864587285, 13119.1076099516, 44027.7631554469, 39683.3953489029, 47900.9680144146, 4367.94741847938, 2366.8328910323, 37976.6371788298, 37048.4264001496, 10284.0336925726, 68129.6960402288, 66856.5131698371, 4012.50779921084, 5715.47531469148]"
              },
              {
                "name": "valid",
                "type": "list",
                "representation": "[61486.38147544, 9566.74518687619, 45061.3864587285, 13119.1076099516, 44027.7631554469, 39683.3953489029, 47900.9680144146, 4367.94741847938, 2366.8328910323, 37976.6371788298, 37048.4264001496, 10284.0336925726, 68129.6960402288, 66856.5131698371, 4012.50779921084, 5715.47531469148]"
              },
              {
                "name": "answer",
                "type": "float",
                "representation": "31100.238572174534"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            }
          }
        ],
        "id": "country",
        "title": {
          "ko": "실제 국가 지표의 함수",
          "en": "A function on actual country indicators"
        },
        "language": "python",
        "code": "from pathlib import Path\nimport csv\nsource = Path(__file__).resolve().parents[2] / 'data01-sources/actual16-country-2024-records-and-original-API-row-keys.csv'\nwith source.open(encoding='utf-8-sig', newline='') as stream:\n    records = list(csv.DictReader(stream))\nprint('rows', len(records))\nprint('first source row', records[0]['sourceRow'])\n\ndef read_optional_number(text):\n    return None if text == '' else float(text)\nvalues = [read_optional_number(row['value']) for row in records]\nvalid = [value for value in values if value is not None]\nprint('total', len(values), 'available', len(valid), 'missing', len(values) - len(valid))\n\ndef available_mean(values):\n    valid = [value for value in values if value is not None]\n    return sum(valid) / len(valid) if valid else None\nanswer = available_mean(values)\nprint('available mean', answer)\n",
        "codeFile": "data02-snippets/python/realdata-country.py",
        "codeSha256": "ab6d9107088ec6673e4851c0f524501bbde1ba4f4edeece4bd43b7fd4e085945",
        "inputSha256": "18252730a66fe37434c34971f1af15f145ac4ed30d90e65d0434994f28a1ac2f",
        "stdout": "rows 16\nfirst source row 2161\ntotal 16 available 16 missing 0\navailable mean 31100.238572174534\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": "data01-sources\\actual16-country-2024-records-and-original-API-row-keys.csv",
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": false
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "person": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "from pathlib import Path\nimport csv\nsource = Path(__file__).resolve().parents[2] / 'data01-sources/actual3613-person-records-and-unavailable-source-logs.csv'\nwith source.open(encoding='utf-8-sig', newline='') as stream:\n    records = list(csv.DictReader(stream))\nprint('rows', len(records))\nprint('first source row', records[0]['sourceRow'])\n",
            "stdout": "rows 3613\nfirst source row 1\n",
            "stderr": "",
            "error": null,
            "variables": [],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          },
          {
            "index": 2,
            "code": "def read_optional_number(text):\n    return None if text == '' else float(text)\nvalues = [read_optional_number(row['value']) for row in records]\nvalid = [value for value in values if value is not None]\nprint('total', len(values), 'available', len(valid), 'missing', len(values) - len(valid))\n",
            "stdout": "total 3613 available 3010 missing 603\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "list",
                "representation": "[6.30627529, 6.17586727, 6.58063914, 5.52146092, 6.59167373, 6.2146081, 6.33682573, 6.41017488, 6.05208917, 6.2441669, 5.4161004, 5.99146455, 6.03308622, 5.37989735, 6.79570578, 5.70378247, None, 5.84643878, 6.48920493, 6.35437004, None, 6.47543272, 6.85012617, 6.41999493, 6.58755001, 6.4035742, 6.54103, None, 7.24422752, 5.70378247, 7.49554194, 6.02344759, 6.44888939, None, 5.33753808, 6.12468339, 6.71417053, 6.35784227, 5.54126355, 6.86901445,  … [display truncated; full source records retained]"
              },
              {
                "name": "valid",
                "type": "list",
                "representation": "[6.30627529, 6.17586727, 6.58063914, 5.52146092, 6.59167373, 6.2146081, 6.33682573, 6.41017488, 6.05208917, 6.2441669, 5.4161004, 5.99146455, 6.03308622, 5.37989735, 6.79570578, 5.70378247, 5.84643878, 6.48920493, 6.35437004, 6.47543272, 6.85012617, 6.41999493, 6.58755001, 6.4035742, 6.54103, 7.24422752, 5.70378247, 7.49554194, 6.02344759, 6.44888939, 5.33753808, 6.12468339, 6.71417053, 6.35784227, 5.54126355, 6.86901445, 6.85012617, 7.0440329, 5 … [display truncated; full source records retained]"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            }
          },
          {
            "index": 3,
            "code": "def available_mean(values):\n    valid = [value for value in values if value is not None]\n    return sum(valid) / len(valid) if valid else None\nanswer = available_mean(values)\nprint('available mean', answer)\n",
            "stdout": "available mean 6.261831917744186\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "list",
                "representation": "[6.30627529, 6.17586727, 6.58063914, 5.52146092, 6.59167373, 6.2146081, 6.33682573, 6.41017488, 6.05208917, 6.2441669, 5.4161004, 5.99146455, 6.03308622, 5.37989735, 6.79570578, 5.70378247, None, 5.84643878, 6.48920493, 6.35437004, None, 6.47543272, 6.85012617, 6.41999493, 6.58755001, 6.4035742, 6.54103, None, 7.24422752, 5.70378247, 7.49554194, 6.02344759, 6.44888939, None, 5.33753808, 6.12468339, 6.71417053, 6.35784227, 5.54126355, 6.86901445,  … [display truncated; full source records retained]"
              },
              {
                "name": "valid",
                "type": "list",
                "representation": "[6.30627529, 6.17586727, 6.58063914, 5.52146092, 6.59167373, 6.2146081, 6.33682573, 6.41017488, 6.05208917, 6.2441669, 5.4161004, 5.99146455, 6.03308622, 5.37989735, 6.79570578, 5.70378247, 5.84643878, 6.48920493, 6.35437004, 6.47543272, 6.85012617, 6.41999493, 6.58755001, 6.4035742, 6.54103, 7.24422752, 5.70378247, 7.49554194, 6.02344759, 6.44888939, 5.33753808, 6.12468339, 6.71417053, 6.35784227, 5.54126355, 6.86901445, 6.85012617, 7.0440329, 5 … [display truncated; full source records retained]"
              },
              {
                "name": "answer",
                "type": "float",
                "representation": "6.261831917744186"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            }
          }
        ],
        "id": "person",
        "title": {
          "ko": "실제 로그 임금의 가용 분모",
          "en": "Available denominators in actual log wages"
        },
        "language": "python",
        "code": "from pathlib import Path\nimport csv\nsource = Path(__file__).resolve().parents[2] / 'data01-sources/actual3613-person-records-and-unavailable-source-logs.csv'\nwith source.open(encoding='utf-8-sig', newline='') as stream:\n    records = list(csv.DictReader(stream))\nprint('rows', len(records))\nprint('first source row', records[0]['sourceRow'])\n\ndef read_optional_number(text):\n    return None if text == '' else float(text)\nvalues = [read_optional_number(row['value']) for row in records]\nvalid = [value for value in values if value is not None]\nprint('total', len(values), 'available', len(valid), 'missing', len(values) - len(valid))\n\ndef available_mean(values):\n    valid = [value for value in values if value is not None]\n    return sum(valid) / len(valid) if valid else None\nanswer = available_mean(values)\nprint('available mean', answer)\n",
        "codeFile": "data02-snippets/python/realdata-person.py",
        "codeSha256": "f4c6f3693e33ab386a9ff43d75bf025421eb6d49af94ca1b5adb9d388809c3ea",
        "inputSha256": "37924fd5a40d6f6a11b91d054cc70467d4ea2bfb2a66fc622f620f4fdecc9616",
        "stdout": "rows 3613\nfirst source row 1\ntotal 3613 available 3010 missing 603\navailable mean 6.261831917744186\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": "data01-sources\\actual3613-person-records-and-unavailable-source-logs.csv",
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": false
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "company": {
        "runtime": {
          "version": "3.12.14 (main, Aug 25 2026, 14:01:42) [MSC v.1944 64 bit (AMD64)]",
          "implementation": "CPython"
        },
        "steps": [
          {
            "index": 1,
            "code": "from pathlib import Path\nimport csv\nsource = Path(__file__).resolve().parents[2] / 'data01-sources/actual410-two-wave-store-records-and-unique-original-row-keys.csv'\nwith source.open(encoding='utf-8-sig', newline='') as stream:\n    records = list(csv.DictReader(stream))\nprint('rows', len(records))\nprint('first source row', records[0]['sourceRow'])\n",
            "stdout": "rows 410\nfirst source row 1\n",
            "stderr": "",
            "error": null,
            "variables": [],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          },
          {
            "index": 2,
            "code": "def read_optional_number(text):\n    return None if text == '' else float(text)\nvalues = [read_optional_number(row['value']) for row in records]\nvalid = [value for value in values if value is not None]\nprint('total', len(values), 'available', len(valid), 'missing', len(values) - len(valid))\n",
            "stdout": "total 410 available 384 missing 26\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "list",
                "representation": "[-16.5, -2.25, 2.0, -14.0, 11.5, None, -41.5, 13.0, 0.0, -0.5, 2.0, -29.0, 4.0, -2.5, 4.5, 3.25, 4.0, 4.0, -14.0, -4.0, -6.25, -17.0, 0.0, -2.5, 1.5, -0.5, -1.5, -7.0, -3.5, -1.5, 7.5, -8.0, 1.0, None, 6.0, 3.0, 6.0, -18.0, -5.5, 1.5, 0.0, 0.0, -9.5, -18.5, -4.0, -7.5, -1.75, 2.0, 2.5, -20.0, 1.5, 6.5, None, 3.5, 12.0, 19.0, 5.5, -3.0, 2.25, -12.5, -18.0, 13.0, -11.0, -1.0, -6.0, -21.5, 4.5, -18.5, 0.5, None, -1.25, 19.0, 22.75, -9.25, -2.5, 16.0 … [display truncated; full source records retained]"
              },
              {
                "name": "valid",
                "type": "list",
                "representation": "[-16.5, -2.25, 2.0, -14.0, 11.5, -41.5, 13.0, 0.0, -0.5, 2.0, -29.0, 4.0, -2.5, 4.5, 3.25, 4.0, 4.0, -14.0, -4.0, -6.25, -17.0, 0.0, -2.5, 1.5, -0.5, -1.5, -7.0, -3.5, -1.5, 7.5, -8.0, 1.0, 6.0, 3.0, 6.0, -18.0, -5.5, 1.5, 0.0, 0.0, -9.5, -18.5, -4.0, -7.5, -1.75, 2.0, 2.5, -20.0, 1.5, 6.5, 3.5, 12.0, 19.0, 5.5, -3.0, 2.25, -12.5, -18.0, 13.0, -11.0, -1.0, -6.0, -21.5, 4.5, -18.5, 0.5, -1.25, 19.0, 22.75, -9.25, -2.5, 16.0, -10.25, -1.5, -3.5, 12 … [display truncated; full source records retained]"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            }
          },
          {
            "index": 3,
            "code": "def available_mean(values):\n    valid = [value for value in values if value is not None]\n    return sum(valid) / len(valid) if valid else None\nanswer = available_mean(values)\nprint('available mean', answer)\nrepeated = [row for row in records if row['code'] == '407']\nprint('407 source rows', [row['sourceRow'] for row in repeated])\nprint('407 changes', [row['value'] for row in repeated])\n",
            "stdout": "available mean -0.07044270833333334\n407 source rows ['42', '168']\n407 changes ['0', '2.5']\n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "list",
                "representation": "[-16.5, -2.25, 2.0, -14.0, 11.5, None, -41.5, 13.0, 0.0, -0.5, 2.0, -29.0, 4.0, -2.5, 4.5, 3.25, 4.0, 4.0, -14.0, -4.0, -6.25, -17.0, 0.0, -2.5, 1.5, -0.5, -1.5, -7.0, -3.5, -1.5, 7.5, -8.0, 1.0, None, 6.0, 3.0, 6.0, -18.0, -5.5, 1.5, 0.0, 0.0, -9.5, -18.5, -4.0, -7.5, -1.75, 2.0, 2.5, -20.0, 1.5, 6.5, None, 3.5, 12.0, 19.0, 5.5, -3.0, 2.25, -12.5, -18.0, 13.0, -11.0, -1.0, -6.0, -21.5, 4.5, -18.5, 0.5, None, -1.25, 19.0, 22.75, -9.25, -2.5, 16.0 … [display truncated; full source records retained]"
              },
              {
                "name": "valid",
                "type": "list",
                "representation": "[-16.5, -2.25, 2.0, -14.0, 11.5, -41.5, 13.0, 0.0, -0.5, 2.0, -29.0, 4.0, -2.5, 4.5, 3.25, 4.0, 4.0, -14.0, -4.0, -6.25, -17.0, 0.0, -2.5, 1.5, -0.5, -1.5, -7.0, -3.5, -1.5, 7.5, -8.0, 1.0, 6.0, 3.0, 6.0, -18.0, -5.5, 1.5, 0.0, 0.0, -9.5, -18.5, -4.0, -7.5, -1.75, 2.0, 2.5, -20.0, 1.5, 6.5, 3.5, 12.0, 19.0, 5.5, -3.0, 2.25, -12.5, -18.0, 13.0, -11.0, -1.0, -6.0, -21.5, 4.5, -18.5, 0.5, -1.25, 19.0, 22.75, -9.25, -2.5, 16.0, -10.25, -1.5, -3.5, 12 … [display truncated; full source records retained]"
              },
              {
                "name": "answer",
                "type": "float",
                "representation": "-0.07044270833333334"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            }
          }
        ],
        "id": "company",
        "title": {
          "ko": "실제 점포 원행과 변화",
          "en": "Actual store source rows and changes"
        },
        "language": "python",
        "code": "from pathlib import Path\nimport csv\nsource = Path(__file__).resolve().parents[2] / 'data01-sources/actual410-two-wave-store-records-and-unique-original-row-keys.csv'\nwith source.open(encoding='utf-8-sig', newline='') as stream:\n    records = list(csv.DictReader(stream))\nprint('rows', len(records))\nprint('first source row', records[0]['sourceRow'])\n\ndef read_optional_number(text):\n    return None if text == '' else float(text)\nvalues = [read_optional_number(row['value']) for row in records]\nvalid = [value for value in values if value is not None]\nprint('total', len(values), 'available', len(valid), 'missing', len(values) - len(valid))\n\ndef available_mean(values):\n    valid = [value for value in values if value is not None]\n    return sum(valid) / len(valid) if valid else None\nanswer = available_mean(values)\nprint('available mean', answer)\nrepeated = [row for row in records if row['code'] == '407']\nprint('407 source rows', [row['sourceRow'] for row in repeated])\nprint('407 changes', [row['value'] for row in repeated])\n",
        "codeFile": "data02-snippets/python/realdata-company.py",
        "codeSha256": "4afba23ccda76fc9a714e7634e45552e997249a1ed388dbf76c5c40fe199c850",
        "inputSha256": "8c0f2866fb3071f4972ee7614cbaed5f9b597ba60377a0ba9b5114ed97ab5df1",
        "stdout": "rows 410\nfirst source row 1\ntotal 410 available 384 missing 26\navailable mean -0.07044270833333334\n407 source rows ['42', '168']\n407 changes ['0', '2.5']\n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "af07b702d3a8c15c153e6c0263c91dbfc737a1d8f2f8fa2119e48d01a3f9c6a2",
          "source": "data01-sources\\actual410-two-wave-store-records-and-unique-original-row-keys.csv",
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": false
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      }
    },
    "r": {
      "country": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "# Run from the chapter download directory, not from the snippets/r folder.\nsource <- 'data01-sources/actual16-country-2024-records-and-original-API-row-keys.csv'\nrecords <- read.csv(source, colClasses='character', na.strings='', check.names=FALSE, fileEncoding='UTF-8-BOM')\ncat('rows', nrow(records), '\\n')\ncat('first source row', records$sourceRow[1], '\\n')\n",
            "stdout": "rows 16 \nfirst source row 2161 \n",
            "stderr": "",
            "error": null,
            "variables": [],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          },
          {
            "index": 2,
            "code": "values <- as.numeric(records$value)\nvalid <- values[!is.na(values)]\ncat('total', length(values), 'available', length(valid), 'missing', sum(is.na(values)), '\\n')\n",
            "stdout": "total 16 available 16 missing 0 \n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "double",
                "representation": "c(61486.38147544, 9566.74518687619, 45061.3864587285, 13119.1076099516, \n44027.7631554469, 39683.3953489029, 47900.9680144146, 4367.94741847938, \n2366.8328910323, 37976.6371788298, 37048.4264001496, 10284.0336925726, \n68129.6960402288, 66856.5131698371, 4012.50779921084, 5715.47531469148\n)"
              },
              {
                "name": "valid",
                "type": "double",
                "representation": "c(61486.38147544, 9566.74518687619, 45061.3864587285, 13119.1076099516, \n44027.7631554469, 39683.3953489029, 47900.9680144146, 4367.94741847938, \n2366.8328910323, 37976.6371788298, 37048.4264001496, 10284.0336925726, \n68129.6960402288, 66856.5131698371, 4012.50779921084, 5715.47531469148\n)"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            }
          },
          {
            "index": 3,
            "code": "available_mean <- function(values) {\n  valid <- values[!is.na(values)]\n  if (!length(valid)) return(NA_real_)\n  mean(valid)\n}\nanswer <- available_mean(values)\ncat('available mean', answer, '\\n')\n",
            "stdout": "available mean 31100.2385721745 \n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "double",
                "representation": "c(61486.38147544, 9566.74518687619, 45061.3864587285, 13119.1076099516, \n44027.7631554469, 39683.3953489029, 47900.9680144146, 4367.94741847938, \n2366.8328910323, 37976.6371788298, 37048.4264001496, 10284.0336925726, \n68129.6960402288, 66856.5131698371, 4012.50779921084, 5715.47531469148\n)"
              },
              {
                "name": "valid",
                "type": "double",
                "representation": "c(61486.38147544, 9566.74518687619, 45061.3864587285, 13119.1076099516, \n44027.7631554469, 39683.3953489029, 47900.9680144146, 4367.94741847938, \n2366.8328910323, 37976.6371788298, 37048.4264001496, 10284.0336925726, \n68129.6960402288, 66856.5131698371, 4012.50779921084, 5715.47531469148\n)"
              },
              {
                "name": "answer",
                "type": "double",
                "representation": "31100.2385721745"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            }
          }
        ],
        "id": "country",
        "title": {
          "ko": "실제 국가 지표의 함수",
          "en": "A function on actual country indicators"
        },
        "language": "r",
        "code": "# Run from the chapter download directory, not from the snippets/r folder.\nsource <- 'data01-sources/actual16-country-2024-records-and-original-API-row-keys.csv'\nrecords <- read.csv(source, colClasses='character', na.strings='', check.names=FALSE, fileEncoding='UTF-8-BOM')\ncat('rows', nrow(records), '\\n')\ncat('first source row', records$sourceRow[1], '\\n')\n\nvalues <- as.numeric(records$value)\nvalid <- values[!is.na(values)]\ncat('total', length(values), 'available', length(valid), 'missing', sum(is.na(values)), '\\n')\n\navailable_mean <- function(values) {\n  valid <- values[!is.na(values)]\n  if (!length(valid)) return(NA_real_)\n  mean(valid)\n}\nanswer <- available_mean(values)\ncat('available mean', answer, '\\n')\n",
        "codeFile": "data02-snippets/r/realdata-country.R",
        "codeSha256": "55e3f793e3a953fdc664f62455b3615d1199429145971bb5f9b1f108c7e3b8cc",
        "inputSha256": "18252730a66fe37434c34971f1af15f145ac4ed30d90e65d0434994f28a1ac2f",
        "stdout": "rows 16 \nfirst source row 2161 \ntotal 16 available 16 missing 0 \navailable mean 31100.2385721745 \n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "959989390c4088725b3c97fb93d63f53f0adad207d42722e2e6110d3c56e922d",
          "source": "data01-sources\\actual16-country-2024-records-and-original-API-row-keys.csv",
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": false
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "person": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "# Run from the chapter download directory, not from the snippets/r folder.\nsource <- 'data01-sources/actual3613-person-records-and-unavailable-source-logs.csv'\nrecords <- read.csv(source, colClasses='character', na.strings='', check.names=FALSE, fileEncoding='UTF-8-BOM')\ncat('rows', nrow(records), '\\n')\ncat('first source row', records$sourceRow[1], '\\n')\n",
            "stdout": "rows 3613 \nfirst source row 1 \n",
            "stderr": "",
            "error": null,
            "variables": [],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          },
          {
            "index": 2,
            "code": "values <- as.numeric(records$value)\nvalid <- values[!is.na(values)]\ncat('total', length(values), 'available', length(valid), 'missing', sum(is.na(values)), '\\n')\n",
            "stdout": "total 3613 available 3010 missing 603 \n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "double",
                "representation": "c(6.30627529, 6.17586727, 6.58063914, 5.52146092, 6.59167373, \n6.2146081, 6.33682573, 6.41017488, 6.05208917, 6.2441669, 5.4161004, \n5.99146455, 6.03308622, 5.37989735, 6.79570578, 5.70378247, NA, \n5.84643878, 6.48920493, 6.35437004, NA, 6.47543272, 6.85012617, \n6.41999493, 6.58755001, 6.4035742, 6.54103, NA, 7.24422752, 5.70378247, \n7.49554194, 6.02344759, 6.44888939, NA, 5.33753808, 6.12468339, \n6.71417053, 6.35784227, 5.54126355, 6.86901445, 6 … [display truncated; full source records retained]"
              },
              {
                "name": "valid",
                "type": "double",
                "representation": "c(6.30627529, 6.17586727, 6.58063914, 5.52146092, 6.59167373, \n6.2146081, 6.33682573, 6.41017488, 6.05208917, 6.2441669, 5.4161004, \n5.99146455, 6.03308622, 5.37989735, 6.79570578, 5.70378247, 5.84643878, \n6.48920493, 6.35437004, 6.47543272, 6.85012617, 6.41999493, 6.58755001, \n6.4035742, 6.54103, 7.24422752, 5.70378247, 7.49554194, 6.02344759, \n6.44888939, 5.33753808, 6.12468339, 6.71417053, 6.35784227, 5.54126355, \n6.86901445, 6.85012617, 7.044 … [display truncated; full source records retained]"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            }
          },
          {
            "index": 3,
            "code": "available_mean <- function(values) {\n  valid <- values[!is.na(values)]\n  if (!length(valid)) return(NA_real_)\n  mean(valid)\n}\nanswer <- available_mean(values)\ncat('available mean', answer, '\\n')\n",
            "stdout": "available mean 6.26183191774419 \n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "double",
                "representation": "c(6.30627529, 6.17586727, 6.58063914, 5.52146092, 6.59167373, \n6.2146081, 6.33682573, 6.41017488, 6.05208917, 6.2441669, 5.4161004, \n5.99146455, 6.03308622, 5.37989735, 6.79570578, 5.70378247, NA, \n5.84643878, 6.48920493, 6.35437004, NA, 6.47543272, 6.85012617, \n6.41999493, 6.58755001, 6.4035742, 6.54103, NA, 7.24422752, 5.70378247, \n7.49554194, 6.02344759, 6.44888939, NA, 5.33753808, 6.12468339, \n6.71417053, 6.35784227, 5.54126355, 6.86901445, 6 … [display truncated; full source records retained]"
              },
              {
                "name": "valid",
                "type": "double",
                "representation": "c(6.30627529, 6.17586727, 6.58063914, 5.52146092, 6.59167373, \n6.2146081, 6.33682573, 6.41017488, 6.05208917, 6.2441669, 5.4161004, \n5.99146455, 6.03308622, 5.37989735, 6.79570578, 5.70378247, 5.84643878, \n6.48920493, 6.35437004, 6.47543272, 6.85012617, 6.41999493, 6.58755001, \n6.4035742, 6.54103, 7.24422752, 5.70378247, 7.49554194, 6.02344759, \n6.44888939, 5.33753808, 6.12468339, 6.71417053, 6.35784227, 5.54126355, \n6.86901445, 6.85012617, 7.044 … [display truncated; full source records retained]"
              },
              {
                "name": "answer",
                "type": "double",
                "representation": "6.26183191774419"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            }
          }
        ],
        "id": "person",
        "title": {
          "ko": "실제 로그 임금의 가용 분모",
          "en": "Available denominators in actual log wages"
        },
        "language": "r",
        "code": "# Run from the chapter download directory, not from the snippets/r folder.\nsource <- 'data01-sources/actual3613-person-records-and-unavailable-source-logs.csv'\nrecords <- read.csv(source, colClasses='character', na.strings='', check.names=FALSE, fileEncoding='UTF-8-BOM')\ncat('rows', nrow(records), '\\n')\ncat('first source row', records$sourceRow[1], '\\n')\n\nvalues <- as.numeric(records$value)\nvalid <- values[!is.na(values)]\ncat('total', length(values), 'available', length(valid), 'missing', sum(is.na(values)), '\\n')\n\navailable_mean <- function(values) {\n  valid <- values[!is.na(values)]\n  if (!length(valid)) return(NA_real_)\n  mean(valid)\n}\nanswer <- available_mean(values)\ncat('available mean', answer, '\\n')\n",
        "codeFile": "data02-snippets/r/realdata-person.R",
        "codeSha256": "25435efee2d8c0ea51697bc9c5210f6a569dfcbcf984ff6abd18c2538d9af552",
        "inputSha256": "37924fd5a40d6f6a11b91d054cc70467d4ea2bfb2a66fc622f620f4fdecc9616",
        "stdout": "rows 3613 \nfirst source row 1 \ntotal 3613 available 3010 missing 603 \navailable mean 6.26183191774419 \n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "e54206fe631d1cf751ba93973aa4ebd90e1c5da76c45d443e4a17ea36f6fcd25",
          "source": "data01-sources\\actual3613-person-records-and-unavailable-source-logs.csv",
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": false
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      },
      "company": {
        "runtime": {
          "version": "R version 4.5.1 (2025-06-13 ucrt)",
          "implementation": "R",
          "displayOptions": {
            "digits": 15,
            "warn": 1
          }
        },
        "steps": [
          {
            "index": 1,
            "code": "# Run from the chapter download directory, not from the snippets/r folder.\nsource <- 'data01-sources/actual410-two-wave-store-records-and-unique-original-row-keys.csv'\nrecords <- read.csv(source, colClasses='character', na.strings='', check.names=FALSE, fileEncoding='UTF-8-BOM')\ncat('rows', nrow(records), '\\n')\ncat('first source row', records$sourceRow[1], '\\n')\n",
            "stdout": "rows 410 \nfirst source row 1 \n",
            "stderr": "",
            "error": null,
            "variables": [],
            "label": {
              "ko": "1단계",
              "en": "Step 1"
            }
          },
          {
            "index": 2,
            "code": "values <- as.numeric(records$value)\nvalid <- values[!is.na(values)]\ncat('total', length(values), 'available', length(valid), 'missing', sum(is.na(values)), '\\n')\n",
            "stdout": "total 410 available 384 missing 26 \n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "double",
                "representation": "c(-16.5, -2.25, 2, -14, 11.5, NA, -41.5, 13, 0, -0.5, 2, -29, \n4, -2.5, 4.5, 3.25, 4, 4, -14, -4, -6.25, -17, 0, -2.5, 1.5, \n-0.5, -1.5, -7, -3.5, -1.5, 7.5, -8, 1, NA, 6, 3, 6, -18, -5.5, \n1.5, 0, 0, -9.5, -18.5, -4, -7.5, -1.75, 2, 2.5, -20, 1.5, 6.5, \nNA, 3.5, 12, 19, 5.5, -3, 2.25, -12.5, -18, 13, -11, -1, -6, \n-21.5, 4.5, -18.5, 0.5, NA, -1.25, 19, 22.75, -9.25, -2.5, 16, \n-10.25, -1.5, -3.5, 12, 6.5, -1, 2.25, 13, 1, -27.5, NA, 17, \n8, 6, 0 … [display truncated; full source records retained]"
              },
              {
                "name": "valid",
                "type": "double",
                "representation": "c(-16.5, -2.25, 2, -14, 11.5, -41.5, 13, 0, -0.5, 2, -29, 4, \n-2.5, 4.5, 3.25, 4, 4, -14, -4, -6.25, -17, 0, -2.5, 1.5, -0.5, \n-1.5, -7, -3.5, -1.5, 7.5, -8, 1, 6, 3, 6, -18, -5.5, 1.5, 0, \n0, -9.5, -18.5, -4, -7.5, -1.75, 2, 2.5, -20, 1.5, 6.5, 3.5, \n12, 19, 5.5, -3, 2.25, -12.5, -18, 13, -11, -1, -6, -21.5, 4.5, \n-18.5, 0.5, -1.25, 19, 22.75, -9.25, -2.5, 16, -10.25, -1.5, \n-3.5, 12, 6.5, -1, 2.25, 13, 1, -27.5, 17, 8, 6, 0, -6.5, 34, \n0, -0.5, … [display truncated; full source records retained]"
              }
            ],
            "label": {
              "ko": "2단계",
              "en": "Step 2"
            }
          },
          {
            "index": 3,
            "code": "available_mean <- function(values) {\n  valid <- values[!is.na(values)]\n  if (!length(valid)) return(NA_real_)\n  mean(valid)\n}\nanswer <- available_mean(values)\ncat('available mean', answer, '\\n')\nrepeated <- records[records$code == '407', ]\ncat('407 source rows', repeated$sourceRow, '\\n')\ncat('407 changes', repeated$value, '\\n')\n",
            "stdout": "available mean -0.0704427083333333 \n407 source rows 42 168 \n407 changes 0 2.5 \n",
            "stderr": "",
            "error": null,
            "variables": [
              {
                "name": "values",
                "type": "double",
                "representation": "c(-16.5, -2.25, 2, -14, 11.5, NA, -41.5, 13, 0, -0.5, 2, -29, \n4, -2.5, 4.5, 3.25, 4, 4, -14, -4, -6.25, -17, 0, -2.5, 1.5, \n-0.5, -1.5, -7, -3.5, -1.5, 7.5, -8, 1, NA, 6, 3, 6, -18, -5.5, \n1.5, 0, 0, -9.5, -18.5, -4, -7.5, -1.75, 2, 2.5, -20, 1.5, 6.5, \nNA, 3.5, 12, 19, 5.5, -3, 2.25, -12.5, -18, 13, -11, -1, -6, \n-21.5, 4.5, -18.5, 0.5, NA, -1.25, 19, 22.75, -9.25, -2.5, 16, \n-10.25, -1.5, -3.5, 12, 6.5, -1, 2.25, 13, 1, -27.5, NA, 17, \n8, 6, 0 … [display truncated; full source records retained]"
              },
              {
                "name": "valid",
                "type": "double",
                "representation": "c(-16.5, -2.25, 2, -14, 11.5, -41.5, 13, 0, -0.5, 2, -29, 4, \n-2.5, 4.5, 3.25, 4, 4, -14, -4, -6.25, -17, 0, -2.5, 1.5, -0.5, \n-1.5, -7, -3.5, -1.5, 7.5, -8, 1, 6, 3, 6, -18, -5.5, 1.5, 0, \n0, -9.5, -18.5, -4, -7.5, -1.75, 2, 2.5, -20, 1.5, 6.5, 3.5, \n12, 19, 5.5, -3, 2.25, -12.5, -18, 13, -11, -1, -6, -21.5, 4.5, \n-18.5, 0.5, -1.25, 19, 22.75, -9.25, -2.5, 16, -10.25, -1.5, \n-3.5, 12, 6.5, -1, 2.25, 13, 1, -27.5, 17, 8, 6, 0, -6.5, 34, \n0, -0.5, … [display truncated; full source records retained]"
              },
              {
                "name": "answer",
                "type": "double",
                "representation": "-0.0704427083333333"
              }
            ],
            "label": {
              "ko": "3단계",
              "en": "Step 3"
            }
          }
        ],
        "id": "company",
        "title": {
          "ko": "실제 점포 원행과 변화",
          "en": "Actual store source rows and changes"
        },
        "language": "r",
        "code": "# Run from the chapter download directory, not from the snippets/r folder.\nsource <- 'data01-sources/actual410-two-wave-store-records-and-unique-original-row-keys.csv'\nrecords <- read.csv(source, colClasses='character', na.strings='', check.names=FALSE, fileEncoding='UTF-8-BOM')\ncat('rows', nrow(records), '\\n')\ncat('first source row', records$sourceRow[1], '\\n')\n\nvalues <- as.numeric(records$value)\nvalid <- values[!is.na(values)]\ncat('total', length(values), 'available', length(valid), 'missing', sum(is.na(values)), '\\n')\n\navailable_mean <- function(values) {\n  valid <- values[!is.na(values)]\n  if (!length(valid)) return(NA_real_)\n  mean(valid)\n}\nanswer <- available_mean(values)\ncat('available mean', answer, '\\n')\nrepeated <- records[records$code == '407', ]\ncat('407 source rows', repeated$sourceRow, '\\n')\ncat('407 changes', repeated$value, '\\n')\n",
        "codeFile": "data02-snippets/r/realdata-company.R",
        "codeSha256": "4f7192f16ca494727b984acf7000d3f40a70abe8233a45d6bac0ddf5d084ca6f",
        "inputSha256": "8c0f2866fb3071f4972ee7614cbaed5f9b597ba60377a0ba9b5114ed97ab5df1",
        "stdout": "rows 410 \nfirst source row 1 \ntotal 410 available 384 missing 26 \navailable mean -0.0704427083333333 \n407 source rows 42 168 \n407 changes 0 2.5 \n",
        "stderr": "",
        "error": null,
        "provenance": {
          "execution": "actual fresh process",
          "driverSha256": "058212a6dcebdfd5929942f08f5930dae60a3180962bde65e1379c6c6f3666b0",
          "source": "data01-sources\\actual410-two-wave-store-records-and-unique-original-row-keys.csv",
          "cellErrorPolicy": "record actual exception and continue next cell",
          "toyData": false
        },
        "note": {
          "ko": "실제 실행 기록입니다. 브라우저는 이 고정 기록을 읽습니다.",
          "en": "An actual execution record. The browser reads this fixed record."
        }
      }
    }
  },
  "recordingAudit": {
    "actualFreshProcesses": 124,
    "authorAssertions": 280,
    "notIndependentReview": true,
    "notBrowserExecution": true
  }
}
