Using Arrays as Lists
In the course intro, the crew’s Python report skipped the docks closed for repairs with
if dock["name"] in closed: and printed this:
Van load: 6
Ported line for line, with if (dock.name in closedDocks) {, the script ran without an error and
printed this:
Van load: 11