This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
contestants = ['mitch', 'dave', 'michael', 'james b', 'james g', 'robyn', 'cole', 'richard', 'tom', 'lonnie'] | |
def choose_winner(contestants, cycles): | |
max_count = 0 | |
max_person = 'jake' | |
random.seed() | |
counts = dict(zip(contestants,[0]*len(contestants))) | |
for i in range(cycles): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 Patrick Hoag - Descendents: 132 | |
2 Eric Compton - Descendents: 2 | |
3 Delane Croissant - Descendents: 0 | |
3 Cory Croissant - Descendents: 0 | |
2 Jeremy Dicks - Descendents: 2 | |
3 David Jones - Descendents: 1 | |
4 Anthony Gentile - Descendents: 0 | |
2 Terry Baldwin - Descendents: 0 | |
2 Brandon Parker - Descendents: 30 | |
3 Terry Knowlton - Descendents: 6 |