def checkQuota(candidateX_Votes, candidateX_Won):
quota = int((validVotesCast / (seatsAvaliable + 1)) + 1)
if candidateX_Votes < quota:
candidateX_Won = False
return candidateX_Won
elif candidateX_Votes >= quota:
candidateX_Won = True
return candidateX_Won
The goal is to have the value of either true or false set as the variable that is put into the function, for example, if I do checkQuota(candidateA_Votes, candidateA_Won) I should be able to use candidateA_Won later on where it is either assigned the value of true or false.
candidateX_Woninto the function if you are also using it as the return value?