tutorfree

Mega-Sena_simples_1

Aug 27th, 2020 (edited)
1,787
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. import random
  2.  
  3. def loteria(num):
  4.  
  5.     sorteio = list(range(num))
  6.     for item in sorteio:
  7.         sorteio[item] = random.sample(range(1, 61), 6)
  8.         sorteio[item].sort()
  9.         print(" ".join(map(str, sorteio[item])))
  10.  
  11. numero = int(input('Digite o numero de apostas: '))
  12. loteria(numero)
Add Comment
Please, Sign In to add comment