Skip to content

Instantly share code, notes, and snippets.

@Superbil
Last active December 12, 2015 09:18
Show Gist options
  • Save Superbil/4749916 to your computer and use it in GitHub Desktop.
Save Superbil/4749916 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
def create_data_from_csv(file_name):
arr = []
with open('0209.csv', 'rb') as f:
r = csv.reader(f)
for row in r:
t = []
for i in row:
t.append(int(i))
arr.append(t)
return arr
def check(source,check):
r = False
for i in source:
if check == i:
r = True
return r
if __name__ == "__main__":
data = create_data_from_csv('lotto649-0209.csv')
c = [1,2,3,4,5,6]
print 'check on %s, result is %s' % (c,check(data,c))
5 12 20 25 33 41
10 15 23 31 39 43
5 14 24 29 32 37
3 4 5 23 28 37
3 6 35 36 37 40
9 12 22 24 28 39
1 9 19 21 24 45
24 28 30 33 43 44
13 18 22 27 39 47
6 7 30 32 42 44
15 17 20 39 45 49
2 3 12 36 43 44
13 19 26 32 40 41
15 22 24 29 31 32
3 11 15 16 35 44
1 13 27 30 36 39
12 16 26 35 42 49
9 21 30 36 38 41
1 3 10 18 27 43
1 8 18 38 44 48
6 10 17 19 22 26
3 16 19 31 37 43
2 5 24 30 32 35
9 10 27 28 34 46
1 9 22 30 37 42
10 14 35 39 42 45
2 7 25 33 40 46
1 29 33 34 43 46
1 10 17 18 34 46
3 4 7 9 16 19
7 28 30 31 32 39
1 18 19 27 37 41
11 21 30 39 43 48
8 17 18 19 34 45
15 31 37 47 48 49
9 10 37 41 43 46
12 19 22 29 38 41
6 16 18 19 23 38
1 14 19 20 32 48
5 18 26 30 31 32
28 32 33 34 36 48
10 13 25 31 48 49
1 19 22 29 45 47
7 11 14 21 36 49
7 10 19 28 34 48
3 9 21 22 25 41
16 20 28 29 32 34
1 13 28 29 40 45
5 19 21 39 45 48
1 5 20 21 29 44
3 11 20 22 30 45
11 15 17 20 47 48
5 27 37 42 44 47
8 22 25 39 40 47
19 24 39 41 42 48
1 3 11 25 41 47
3 9 30 41 43 46
1 2 19 26 34 35
4 14 15 20 22 46
11 15 25 35 36 39
4 7 10 27 40 46
18 20 22 23 35 43
2 8 11 25 27 32
8 30 33 41 44 46
7 14 24 27 42 44
4 7 19 28 30 37
4 5 9 20 45 48
11 20 30 34 38 49
10 19 22 27 47 49
1 4 9 15 33 42
18 27 33 34 37 41
6 11 34 37 44 46
16 18 27 32 41 42
5 13 20 22 31 48
1 17 28 29 38 39
6 12 15 26 29 39
14 15 16 19 38 48
3 12 15 25 38 42
6 8 10 18 21 22
4 12 14 29 34 44
2 24 32 34 35 40
4 5 10 41 44 47
9 17 18 23 35 38
2 6 11 26 28 40
6 14 25 44 48 49
1 8 28 32 35 40
15 25 27 29 38 47
8 21 26 27 45 48
9 16 25 29 36 45
4 23 24 32 34 49
9 10 13 27 33 47
4 6 11 15 20 28
2 6 19 24 30 33
4 13 19 24 27 35
8 16 22 28 41 43
20 25 27 34 41 46
1 7 9 15 22 43
2 7 21 27 45 49
5 6 29 33 40 48
12 16 25 44 48 49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment