name1 = {}
name2 = {}
result = {}
while True:
response = input("who do you want to vote on?")
if name1:
name1 += 1
if name2:
name2 += 1
if response == 'finished':
print(result, "has won")
break
I'm currently trying to count values together, and print the winning name when "finished" has been typed in. I tried to use greater then >
and less then <
but then I get a error saying input is an int (number).