-
Notifications
You must be signed in to change notification settings - Fork 1
/
random_seat_chooser.py
42 lines (37 loc) · 1.07 KB
/
random_seat_chooser.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
from random import sample
seats = []
for letter in "ABCDEF":
for i in range(1, 51):
seats.append("{}{}".format(letter, i))
for letter in "ABCDEFGHIJKLMNOPQR":
for i in range(59, 67):
seats.append("{}{}".format(letter, i))
for i in range(70, 86):
seats.append("{}{}".format(letter, i))
for i in range(90, 106):
seats.append("{}{}".format(letter, i))
for i in range(109, 117):
seats.append("{}{}".format(letter, i))
# rows S and T
for i in range(59, 67):
seats.append("{}{}".format('S', i))
for i in range(70, 82):
seats.append("{}{}".format('S', i))
for i in range(94, 106):
seats.append("{}{}".format('S', i))
for i in range(109, 117):
seats.append("{}{}".format('S', i))
for i in range(59, 82):
seats.append("{}{}".format('T', i))
for i in range(94, 116):
seats.append("{}{}".format('T', i))
# These seats shouldn't win tickets
seats.remove('G64')
seats.remove('G65')
seats.remove('G66')
print(len(seats))
# print(seats)
print()
chosen_seats = sample(seats, 15)
chosen_seats.sort()
print(chosen_seats)