Advertisement
Dudugz-Contistente

Untitled

Aug 20th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. import random
  2.  
  3. lista=['Joao','Kaue','Rafa','Riannamojanga']
  4.  
  5. sorts=[]
  6.  
  7. def sendSorteio():
  8. n=random.choice(lista)
  9.  
  10. if not n in sorts:
  11. sorts.append(n)
  12. return n
  13. else:
  14. sendSorteio()
  15. return None
  16.  
  17. print(sendSorteio())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement