| 1 | initial version |
You may have other issues, but in Python you can't assign things this way as in your first line. Try
zero_count, one_count, two_count = 0, 0, 0
instead. (Technical explanation is that commas create tuples, so you are assigning the output of a tuple to those variable names.)
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.