Iterating through a list. Upon condition I want to move on to next item in list
Erik
python at lucidity.plus.com
Wed May 10 16:39:54 EDT 2017
On 10/05/17 20:25, aaron.m.weisberg at gmail.com wrote:
> As my code stands right now, it counts through the stateList[0] and
> then when associationsCount gets to 0 it just stops. I know I need
> to add another couple lines of code to get it back going again
It's very difficult to see what you're trying to do without any
information on what the input format is etc, but from your description
my *complete guess* at what might help is to look at putting this line:
associationsCount = 1
*AFTER* this line:
for state in stateList:
Regards, E.
More information about the Python-list
mailing list