Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 865 Bytes

File metadata and controls

15 lines (13 loc) · 865 Bytes

#Python Challenge

Task 1: PyBank

The script opens and reads the csv file and converts the data into lists. Using various methods of lists it calculates the profit/loss, the total number of entries, the highest & lowest change and the bank entry corresponding to it using data dictionaries Output is printed to the terminal as well as written into file : PyBank_Swati.txt which is created at the same path

Task 2: PyPoll

The script opens and reads the csv file and converts the data into data dictionary The dictionary helps to calculate the number of votes per candidate, their corresponding percentage and finally we find the winning candidate with the help of a user defined function Output is printed to the terminal as well as written into file : PyPoll_Swati.txt which is created at the same path