Advertisement
diegomrodrigues

2o Exemplo de Sorteio de Loteria

Dec 15th, 2019
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1. '''
  2. 2o Exemplo de Sorteio de Loteria
  3. Diego Mendes Rodrigues
  4. '''
  5.  
  6. # Números apostados
  7. number = [25,36,33,14,15]
  8.  
  9. # Sorteios realizados
  10. sorteios = [[25,36,14,18,11],[51,32,41,10,66]]
  11.  
  12. # Verificar os sorteios realizados
  13. for sorteio in sorteios:
  14.   print(f'Números {number} no sorteio {sorteio}')
  15.   acertos = 0
  16.  
  17.   for numero_sorteio in sorteio:
  18.     for numero in number:
  19.       if numero_sorteio == numero:
  20.         print(numero)
  21.         acertos = acertos + 1
  22.  
  23.   print(f"Acertos = {acertos}\n")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement