In: Computer Science
code:
print("Details for candidate a")
adem =int(input("Enter democratic members for a : "))
arep =int(input("Enter republican members for a : "))
alib =int(input("Enter libiraterians members for a : "))
aind =int(input("Enter independent members for a : "))
print("Details for candidate b")
bdem =int(input("Enter democratic members for b : "))
brep =int(input("Enter republican members for b : "))
blib =int(input("Enter libiraterians members for b : "))
bind =int(input("Enter independent members for b : "))
a=(adem+arep+alib+aind)
b=(bdem+brep+blib+bind)
if(a>b):
print("a is the winner as he got high number of votes")
elif(a<b):
print("b is the winner as he got high number of votes")
elif(a==b):
print("Both got same number of votes so tied")