Ask Your Question

Revision history [back]

click to hide/show revision 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.)