-
Notifications
You must be signed in to change notification settings - Fork 0
/
weekly.py
41 lines (35 loc) · 1.31 KB
/
weekly.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
import csv
file=open('testcsv.csv','r')
file.seek(0)
Reader=csv.reader(file)
for row in Reader:
toW = row[1]
freqW = row[5]
if row[5] == 'weekly':
#print (row[1])
if row[2] == 'yes' and (row[3] == 'yes' and row[4] == 'yes'):
from cars import *
from games import *
from music import *
#print(row[1], '123')
elif row[2] == 'yes' and (row[3] == 'yes' and row[4] == 'no'):
from cars import *
from games import *
#print(row[1], '12')
elif row[2] == 'yes' and (row[4] == 'yes' and row[3] == 'no'):
from cars import *
from music import *
#print(row[1], '13')
elif row[3] == 'yes' and (row[4] == 'yes' and row[2] == 'no'):
from games import *
from music import *
#print(row[1], '23')
elif row[2] == 'yes' and (row[3] == 'no' and row[4] == 'no'):
from cars import *
#print(row[1], '1')
elif row[3] == 'yes' and (row[2] == 'no' and row[4] == 'no'):
from games import *
print(row[1], '2')
elif row[4] == 'yes' and (row[2] == 'no' and row[3] == 'no'):
from music import *
#print(row[1], '3')