Untitled

mail@pastecode.io avatar
unknown
plain_text
8 months ago
452 B
2
Indexable
Never
votes = {}

def add_position(position):
    votes[position] = {}
    
def add_member(postion, candidate):
    votes[position][candidate] = 0
    

votes = {
    'pres': {
        'cand1': 0,
        'cand2': 0
    },
    'vp': {
        'cand1': 0
    }
}

<option value="{{ key }}">{{ key }}</option>
<option value="2">2</option>
<option>2</option>


def vote(position, candidate):
    votes[position][candidate] = votes[position][candidate] + 1
    
Leave a Comment