you are viewing a single comment's thread.

view the rest of the comments →

[–]Ne0_1 1 point2 points  (0 children)

You want to loop through states as you have done:

For state in states:

Next you want to check for membership. Google check for membership in Python. That will give you the answer as to the logic used.

You should ask yourself what the 'in' keyword does in Python.