loopCount = 0
candidateName = input("Please input the candidates name or type 'DONE' when finished:")
votes = []
while candidateName != "DONE":
departmentName = input("Please input the department that submitted votes for this candidate:")
numberOfVotes = input("Please input the number of votes for this candidate:")
votes.append([])
votes[loopCount].append(candidateName)
votes[loopCount].append(departmentName)
votes[loopCount].append(numberOfVotes)
print(votes[loopCount])
loopCount = loopCount + 1
candidateName = input("Please input the candidates name or type 'DONE' when finished:")
print(votes)
sum = 0
for i in range(0,len(votes)):
This is my code I currently have. I believe what I need done can be done with a for loop. What I'm trying to do is cycle through the list, and add total up each candidate's vote count. Of course, if a candidate has a matching name I would need it to be correctly allocated. If anyone can please just point in the right direction on how I can process a list in this fashion. The multidimensional list is what's throwing me off. Any tips or advice at all would be appreciated. Thank you.