Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- dez1 = ['0','1','2','3','4','5','6']
- dez2 = ['0','1','2','3','4','5','6']
- sorteio = []
- while len(sorteio) <= 5:
- x = random.randint(0,6)
- random.shuffle(dez1)
- random.shuffle(dez2)
- dezena = dez1[x]+dez2[x]
- if dezena != '00' and dezena not in sorteio and int(dezena) <= 60:
- sorteio.append(dezena)
- print("Dezenas sorteadas")
- sorteio.sort()
- for item in sorteio:
- print(item)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement