{"assignment":{"_schema_version":2,"course_id":37,"date_created":"2022-06-28T19:00:00+00:00","date_modified":"2022-07-13T19:20:23.436004+00:00","extra_instructor_files":"","extra_starting_files":"","forked_id":null,"forked_version":null,"hidden":false,"id":1067,"instructions":"{\n  \"settings\": {\n    \"readingId\": \"bakery_for_patterns_read\"\n  },\n  \"questions\": {\n    \"SumVariablePrediction\": {\n      \"type\": \"short_answer_question\",\n      \"points\": 1,\n      \"body\": \"After the third iteration of the loop, what is the value of `sum`?\\n```python\\nsum = 0\\nvalues = [4, 2, 6]\\nfor value in values:\\n    sum = sum + value\\n```\"\n    },\n    \"UnderstandCountUpdate\": {\n      \"type\": \"multiple_choice_question\",\n      \"points\": 1,\n      \"body\": \"What does line 4 do?\\n```python\\ncount = 0\\nvalues = [4,5,6]\\nfor value in values:\\n    count = count + 1\\n```\",\n      \"answers\": [\n        \"Takes the current value of count, adds 1 to it, and then updates count with the new value.\",\n        \"Causes an error, because it is algebraically impossible for a number to be one more than itself.\",\n        \"Increases count by the value.\",\n        \"Adds 1 to the list of values.\"\n      ]\n    },\n    \"StatementInsideBody\": {\n      \"type\": \"multiple_choice_question\",\n      \"points\": 1,\n      \"body\": \"Is the `print` call before, inside, or after the `for` loop?\\n```python\\nfor name in names:\\n    print(name)\\n```\",\n      \"answers\": [\n        \"Inside\",\n        \"Before\",\n        \"After\"\n      ]\n    },\n    \"PredictingBooleanAccumulation\": {\n      \"type\": \"short_answer_question\",\n      \"points\": 1,\n      \"body\": \"What is the value of `any` after the following Boolean Accumulation is executed?\\n```python\\nconditions = [False, False, True, False]\\nany = False\\nfor condition in conditions:\\n    any = any or condition\\nprint(any)\\n```\"\n    },\n    \"PredictingStringAccumulation\": {\n      \"type\": \"true_false_question\",\n      \"points\": 1,\n      \"body\": \"True or false: the following code prints `True`. You can see this code execute [here][8].\\n```python\\nnames = [\\\"Alice\\\", \\\"Bob\\\", \\\"Carol\\\"]\\njoined_names = \\\"Alice, Bob, Carol\\\"\\nadded_names = \\\"\\\"\\nfor name in names:\\n    added_names = added_names + name + \\\", \\\"\\nprint(added_names == joined_names)\\n```\\n\\n   [8]: https://goo.gl/axAGX7\"\n    }\n  }\n}","ip_ranges":"","name":"6A2) For Loop Patterns 1","on_change":"","on_eval":"","on_run":"","owner_id":1,"owner_id__email":"acbart@udel.edu","points":1,"public":true,"reviewed":false,"sample_submissions":[],"settings":null,"starting_code":"","subordinate":false,"tags":[],"type":"quiz","url":"bakery_for_patterns_quiz","version":2},"ip":"216.73.216.157","submission":{"_schema_version":3,"assignment_id":1067,"assignment_version":2,"attempts":0,"code":"","correct":false,"course_id":37,"date_created":"2026-05-20T14:01:44.434731+00:00","date_due":"","date_graded":"","date_locked":"","date_modified":"2026-05-20T14:01:44.434731+00:00","date_started":"","date_submitted":"","endpoint":"","extra_files":"","feedback":"","grading_status":"NotReady","id":2036908,"score":0.0,"submission_status":"Started","time_limit":"","url":"submission_url-5889ad14-5a59-415e-9ae9-46913adc7e0c","user_id":2044668,"user_id__email":"","version":0},"success":true}
