I am trying to create a ballot system in which a user can input candidates names and then input preference scores. The program then works out the winner and prints a result.
I am getting an annoying return from my console when I run this line of code.
for i in range(len(winners)[i]):
The error reads:
TypeError: 'int' object is not subscriptable
(Edited: Code dump redacted.)