Skip to content

Instantly share code, notes, and snippets.

@pmarkun
Created June 10, 2013 02:09
Show Gist options
  • Save pmarkun/5746101 to your computer and use it in GitHub Desktop.
Save pmarkun/5746101 to your computer and use it in GitHub Desktop.
#-*- 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