Created
August 24, 2014 22:41
-
-
Save gabrielcesar/ee759ed4c2058608a690 to your computer and use it in GitHub Desktop.
Sorteio por Nome em Python
This file contains hidden or 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
#!/usr/bin/python | |
# 20140824 | |
import random | |
pessoas = [ 'Wandson Ramos','Gabriel Cesar','Caio Rego' ] | |
print 'SORTEIO' | |
print 'O ganhador foi: ' + pessoas [ random.randrange ( len ( pessoas ))] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fiz conforme o primeiro print, e deu certo.
Valeu!