项目作者: lindalevy

项目描述 :
Week 3 of the homework
高级语言: Python
项目地址: git://github.com/lindalevy/Python-Challenge.git
创建时间: 2020-12-03T10:57:27Z
项目社区:https://github.com/lindalevy/Python-Challenge

开源协议:

下载


Python-Challenge

created for week 3 homework

PYBank

code finished, written to use dictionary and lists

pyPoll

code finally finished

I ended up using lists and dict

the dict was a great way to sum the values by a candidate

but then I changed the dict out to lists (one for candidate and one for values)

this then allowed me to calculate on the values list and produce a third list of the percentages

I could have zipped these three lists all back together, but chose not to

having three seperate lists allowed me greater control over the output (spacing mainly)