Δεδομένα για ΚΙΝΟ: έχουμε την κλήρωση 20 αριθμών, απο ένα σύνολο 80 αριθμών, κλήρωση κάθε 5 λεπτά συνολικά 288 κληρώσεις, απο το portal του ΟΠΑΠ έχουμε:
Data for KINO: We have a draw of 20 numbers from a set of 80 numbers, with a draw every 5 minutes, totaling 288 draws. From the OPAP portal, we have:
Data for KINO: We have a draw of 20 numbers from a set of 80 numbers, with a draw every 5 minutes, totaling 288 draws. From the OPAP portal, we have:
20:05 66 14 30 32 8 15 7 11 33 17 9 64 74 59 35 56 52 24 51 23
20:00 66 36 20 44 38 52 28 80 72 21 16 63 74 33 41 34 29 77 71 37
19:55 11 68 64 69 13 42 62 50 30 75 2 43 29 55 39 23 74 27 22 71
19:50 44 3 59 26 12 53 30 6 58 41 17 1 60 19 13 34 21 31 45 8
19:45 56 66 10 30 5 13 31 55 63 11 14 37 17 51 24 9 29 21 2 80
19:40 41 34 59 51 80 50 71 68 79 12 24 49 76 10 73 23 37 56 60 21
19:35 36 68 23 38 28 1 73 9 63 47 11 74 50 39 26 17 7 13 77 75
19:30 47 11 24 43 76 8 44 51 30 2 58 34 1 32 72 28 60 38 20 64
19:25 76 51 55 34 23 27 61 48 4 29 74 70 3 35 21 56 60 19 38 14
19:20 10 35 17 15 9 80 48 32 26 14 60 29 55 61 40 76 70 24 13 77Προετοιμάζουμε τα δεδομένα στην κατάλληλη μορφή, δηλαδή βάζουμε κόμμα μετά απο κάθε αριθμό και αγκύλες, φτιάχνοντας πίνακες [ 10 x 20].
Prepare the data in the appropriate format, i.e., insert a comma after each number and enclose the sets in brackets, creating [10 x 20] tables.
Prepare the data in the appropriate format, i.e., insert a comma after each number and enclose the sets in brackets, creating [10 x 20] tables.
data = """66 14 30 32 8 15 7 11 33 17 9 64 74 59 35 56 52 24 51 23
66 36 20 44 38 52 28 80 72 21 16 63 74 33 41 34 29 77 71 37
11 68 64 69 13 42 62 50 30 75 2 43 29 55 39 23 74 27 22 71
44 3 59 26 12 53 30 6 58 41 17 1 60 19 13 34 21 31 45 8
56 66 10 30 5 13 31 55 63 11 14 37 17 51 24 9 29 21 2 80
41 34 59 51 80 50 71 68 79 12 24 49 76 10 73 23 37 56 60 21
36 68 23 38 28 1 73 9 63 47 11 74 50 39 26 17 7 13 77 75
47 11 24 43 76 8 44 51 30 2 58 34 1 32 72 28 60 38 20 64
76 51 55 34 23 27 61 48 4 29 74 70 3 35 21 56 60 19 38 14
10 35 17 15 9 80 48 32 26 14 60 29 55 61 40 76 70 24 13 77
"""
lines = data.strip().split('\n')
def add_commas_and_brackets(line):
numbers = line.split()
formatted_line = '[' + ', '.join(numbers) + '],'
return formatted_line
for line in lines:
print(add_commas_and_brackets(line))Αποτέλεσμα:
Results:
[66, 14, 30, 32, 8, 15, 7, 11, 33, 17, 9, 64, 74, 59, 35, 56, 52, 24, 51, 23],
[66, 36, 20, 44, 38, 52, 28, 80, 72, 21, 16, 63, 74, 33, 41, 34, 29, 77, 71, 37],
[11, 68, 64, 69, 13, 42, 62, 50, 30, 75, 2, 43, 29, 55, 39, 23, 74, 27, 22, 71],
[44, 3, 59, 26, 12, 53, 30, 6, 58, 41, 17, 1, 60, 19, 13, 34, 21, 31, 45, 8],
[56, 66, 10, 30, 5, 13, 31, 55, 63, 11, 14, 37, 17, 51, 24, 9, 29, 21, 2, 80],
[41, 34, 59, 51, 80, 50, 71, 68, 79, 12, 24, 49, 76, 10, 73, 23, 37, 56, 60, 21],
[36, 68, 23, 38, 28, 1, 73, 9, 63, 47, 11, 74, 50, 39, 26, 17, 7, 13, 77, 75],
[47, 11, 24, 43, 76, 8, 44, 51, 30, 2, 58, 34, 1, 32, 72, 28, 60, 38, 20, 64],
[76, 51, 55, 34, 23, 27, 61, 48, 4, 29, 74, 70, 3, 35, 21, 56, 60, 19, 38, 14],
[10, 35, 17, 15, 9, 80, 48, 32, 26, 14, 60, 29, 55, 61, 40, 76, 70, 24, 13, 77],Τώρα έχουμε τα δεδομένα μας στην κατάλληλη μορφή (πίνακες). Now we have our data in the appropriate format (tables).
Τα δεδομένα έχουν μορφοποιηθεί ως πίνακες, όπου κάθε λίστα αποτελείται από 20 αριθμούς διαχωρισμένους με κόμματα και περικλεισμένους με αγκύλες. The data has been formatted as tables, where each list consists of 20 numbers separated by commas and enclosed in brackets.
