The PyPoll project analyzes election data to calculate the following:
- Total Votes: The total number of votes cast in the election.
- Candidates: The list of candidates who received votes.
- Vote Percentage: The percentage of total votes each candidate received.
- Winner: The candidate who received the most votes.
The project processes a CSV file containing the election data and displays the results in the terminal and also saves them in a text file.
The PyBank project analyzes a company's financial records to compute important financial metrics over a given period. Using Python, we analyze a dataset that contains the company’s monthly profits and losses, and output the following results:
- Total Months: The number of months in the dataset.
- Total Profit/Losses: The sum of profit/loss for all months.
- Average Change: The average change in profit/loss from month to month.
- Greatest Increase in Profits: The month with the greatest increase in profit.
- Greatest Decrease in Profits: The month with the greatest decrease in profit.
The project reads in a CSV file, performs the necessary calculations, and outputs both the results in the terminal and as a text file.