Created
June 10, 2013 02:09
-
-
Save pmarkun/5746101 to your computer and use it in GitHub Desktop.
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
#-*- coding:utf-8 -* | |
from random import shuffle | |
vagas = 24 | |
garantidos = ['Pedro Markun', 'Livia Ascava', 'Priscilla Cavalieri', 'Flynn', 'Lucilio', 'Luiza Só', 'Fabricio Zuardi', 'Pedro Belasco', 'Izidoro', 'Resende', 'Blah', 'Breno', 'Bianca', 'Gabriela Yanomami'] | |
inscritos = ['Capi', 'Livia Amorim', 'Leo Foletto', 'Renmero','Gabriela Nardy', 'Sheila', 'Leo Finizola', 'Victória Ciampolini', 'Trévis', 'Meimberg', 'Pansera', 'Francesca', 'Gabriele Stein', 'Tamiris', 'Ingrid Cuestas', 'Jade Rainho'] | |
shuffle(inscritos) | |
lista = [] | |
for vaga in range(1,vagas+1): | |
if len(garantidos) > 0: | |
lista.append(garantidos.pop()) | |
else: | |
lista.append(inscritos.pop()) | |
for index, pessoa in enumerate(lista): | |
print str(index+1) + ". " + pessoa |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment