Correct answer
Student view placeholder
In student views this area is used for assessment and score info.
Tools
Staff information
Question
Title:
Element pl-order-blocks: code with ranking and indentation
Variant
Started at:
2026-09-19 08:00:50 (CDT)
Duration:
0s
Show/Hide answer
{
"python-ordered": [
{
"tag": "ed75e899-b0d9-468c-9dbe-b3130c52dd87",
"uuid": "f7d36507-3d57-4b12-bff6-3629d92f2d8a",
"final": false,
"index": 0,
"indent": 0,
"depends": [],
"ranking": 1,
"group_info": {
"tag": null,
"depends": null
},
"inner_html": "<pl-code language=\"python\">def my_sum(first, second):</pl-code>",
"distractor_for": null,
"initially_placed": false,
"ordering_feedback": null,
"distractor_feedback": null
},
{
"tag": "b781a218-ca8f-4da5-bfd3-f90db4ed1817",
"uuid": "b0aa4da2-d395-4fca-bfb9-9f76b8f0bb73",
"final": false,
"index": 1,
"indent": 1,
"depends": [],
"ranking": 2,
"group_info": {
"tag": null,
"depends": null
},
"inner_html": "<pl-code language=\"python\">sum = 0</pl-code>",
"distractor_for": null,
"initially_placed": false,
"ordering_feedback": null,
"distractor_feedback": null
},
{
"tag": "addfirst",
"uuid": "d8eec867-3c65-473c-9a57-39e5546678ce",
"final": false,
"index": 2,
"indent": 1,
"depends": [],
"ranking": 3,
"group_info": {
"tag": null,
"depends": null
},
"inner_html": "<pl-code language=\"python\">sum += first</pl-code>",
"distractor_bin": "b0704ad9-3a50-4303-85f5-2706804bf8db",
"distractor_for": null,
"initially_placed": false,
"ordering_feedback": null,
"distractor_feedback": null
},
{
"tag": "addsecond",
"uuid": "b27622f1-4f4d-4784-863e-be459e38c3a1",
"final": false,
"index": 3,
"indent": 1,
"depends": [],
"ranking": 3,
"group_info": {
"tag": null,
"depends": null
},
"inner_html": "<pl-code language=\"python\">sum += second</pl-code>",
"distractor_bin": "c9d09989-ac0e-4b8d-99aa-5412c03d07bd",
"distractor_for": null,
"initially_placed": false,
"ordering_feedback": null,
"distractor_feedback": null
},
{
"tag": "c100e723-7a74-4dde-9c6f-b136c060cb16",
"uuid": "e797303a-5923-476c-8275-77dc6827fd4e",
"final": false,
"index": 4,
"indent": 1,
"depends": [],
"ranking": 4,
"group_info": {
"tag": null,
"depends": null
},
"inner_html": "<pl-code language=\"python\">return sum</pl-code>",
"distractor_for": null,
"initially_placed": false,
"ordering_feedback": null,
"distractor_feedback": null
}
]
}