4 from sys
import argv
, exit
7 def get_names(filename
):
9 names
= file.readlines()
13 def choose_time1(names
):
18 nr
= random
.randint(0, max)
19 if names
[nr
] not in time1
:
20 time1
.append(names
[nr
])
21 if len(time1
) == (max + 1) / 2:
24 def show_times(time1
, names
):
35 names
= get_names(argv
[1])
36 if len(names
) % 2 != 0:
37 print 'Tem que ser par tio'
39 time1
= choose_time1(names
)
40 show_times(time1
, names
)
42 if __name__
== '__main__':