Untitled
unknown
plain_text
2 years ago
452 B
10
Indexable
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
Editor is loading...
Leave a Comment