Question: condorcet.py Write python code You will need to write the following functions: remove candidates and print _ wins. The _ _ init _ _ _

condorcet.py
Write python code
You will need to write the following functions: remove candidates and print_wins. The __init ___ str _, and determine _winner functions are complete and you should not change the code. The details for the functions are in the
condorcet.py file.
Once you have correctly written the remove_candidates and print_wins functions, created a VotingData object, created a Condorcet object, called determine _winner and print_wins on the Condorcet object, and printed the Condorcet object, then all of the one to one competitions with the results will be printed to the shell along with the cumulative wins. Since the output is more than one full screen, the below screenshot is a portion (the last portion) of the output:
74,572,74.6% Georgia Amoore
25,428,25.4% Olivia Summiel
Georgia Amoore vs Olivia Summiel
Georgia Amoore wins: 3
70,485,70.5% Cayla King
29,515,29.5% Olivia Summiel
Cayla King vs olivia Summiel
Cayla King wins: 2
One To one Wins:
Matilda Ekh : 4
Georgia Amoore: 3
Cayla King : 2
Elizebeth Kitley : 1
olivia Summiel : 0
The Condoret Winner:
Matilda Ekh
project3.py
You will need to create the
project3.py file. This file is the main file for the program. In this file, import all the above classes, create the main function and produce each of the outputs detailed above.
condorcet.py Write python code You will need to

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!