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 printwins. 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 removecandidates and printwins functions, created a VotingData object, created a Condorcet object, called determine winner and printwins 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:
Georgia Amoore
Olivia Summiel
Georgia Amoore vs Olivia Summiel
Georgia Amoore wins:
Cayla King
Olivia Summiel
Cayla King vs olivia Summiel
Cayla King wins:
One To one Wins:
Matilda Ekh :
Georgia Amoore:
Cayla King :
Elizebeth Kitley :
olivia Summiel :
The Condoret Winner:
Matilda Ekh
projectpy
You will need to create the
projectpy 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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
