-
-
Save maluta/2500407 to your computer and use it in GitHub Desktop.
Quantos sorteios para você ganhar na mega sena?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
my_numbers = set(random.sample(xrange(1,61),6)) | |
if __name__ == '__main__': | |
count = 1 | |
while my_numbers != set(random.sample(xrange(1,61),6)): | |
count += 1 | |
print count |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment