You are on page 1of 1

Source Code

refund = 0
for candidates in range(10):
candidatename = input("enter candidate name:")
votesreceived = int(input("enter votes received:"))
votescast = int(input("enter votes cast:"))

if votesreceived>20/100*votescast:
print(candidatename, "Refund Due \n"
refund = refund + 1
else:
print(candidatename, "No Refund Due \n"
refund = refund
print (refund, "Candidate(s) received a refund")

You might also like