Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- def loteria(num):
- sorteio = list(range(num))
- for item in sorteio:
- sorteio[item] = random.sample(range(1, 61), 6)
- sorteio[item].sort()
- print(" ".join(map(str, sorteio[item])))
- numero = int(input('Digite o numero de apostas: '))
- loteria(numero)
Add Comment
Please, Sign In to add comment