The error says you are iterating over an object which is not a list or sequence. It's occurring on the line "for agent in DRIVING:"
Looking at your code, the variable DRIVING is being assigned an integer value, which is not a list or sequence. You need to fix that line of code so it iterates over a list or sequence object.
|