i need to make a dictonary that works like so:
when u type:
vote(dict,perso n): it should vote for that person in question by modifying the dictionary and if the person does not exist it creates the person and places a vote for them.
votes(dict,pers on): it shows how many votes that person in question has and zero if a nmae is tyoed that isnt in the dictionary.
result(dict): shows who has the most votes.
hope yall understand. Thanks!
when u type:
vote(dict,perso n): it should vote for that person in question by modifying the dictionary and if the person does not exist it creates the person and places a vote for them.
votes(dict,pers on): it shows how many votes that person in question has and zero if a nmae is tyoed that isnt in the dictionary.
result(dict): shows who has the most votes.
hope yall understand. Thanks!
Comment