from machine import Pin
from time import sleep
p1 = 0
b1 = Pin(0,Pin.IN,Pin.PULL_UP)
p2 = 0
b2 = Pin(1,Pin.IN,Pin.PULL_UP)
while True:
if b1.value()==0:
p1 = p1 + 1
sleep(5)
if b2.value()==0:
p2 = p2 + 1
sleep(0.5)
print("party one votes=", p1, "Party two votes=",p2)