-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgeneratetuple.py
50 lines (40 loc) · 939 Bytes
/
generatetuple.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
43
44
45
46
47
48
49
50
# -*- coding: UTF-8 -*-
matching_company_stud_dict={
'Company 1':[
'Alex',
'Bob',
'Caroline',
'Doris',
],
'Company 2':[
'Alex',
'Caroline',
'Fredrik',
],
'Company 3':[
'Alex',
'Bob',
'Edward',
]
}
normal_times=['09:00','10:00','11:00']
company_3_special_times=['10:00','11:00','13:00']
interviewtimes={}
interviewtimes={
'Company 1':normal_times,
'Company 2':normal_times,
'Company 3':company_3_special_times
}
students_special_time={
'Alex':['10:00','11:00','13:00']
}
f = open("ks.txt","w+")
for company in matching_company_stud_dict:
for student in matching_company_stud_dict[company]:
if student in students_special_time:
for time in students_special_time[student]:
f.write("('"+student+"'," + "'"+company+"'," +"'" +time+"'),\n")
else:
for time in interviewtimes[company]:
f.write("('"+student+"'," + "'"+company+"'," +"'" +time+"'),\n")
f.close()