-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcsvReaderIrregular.py
74 lines (43 loc) · 1.94 KB
/
csvReaderIrregular.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import random
import csv
def verbChoice():
with open('times irregular/infinitif.csv', newline='') as csvfile:
reader = csv.reader(csvfile)
rows = [row for row in reader]
random_verbe = random.choice(rows)[0]
return random_verbe
def Presente_de_indicativo():
with open('times irregular/Presente de indicativo.csv', newline='') as csvfile:
reader = csv.reader(csvfile, delimiter=';')
rows = [row for row in reader]
return rows
def Presente_de_subjonctivo():
with open('times irregular/Presente de subjonctivo.csv', newline='') as csvfile:
reader = csv.reader(csvfile, delimiter=';')
rows = [row for row in reader]
return rows
def Preterito_imperfecto_de_indicativo():
with open('times irregular/Pretérito imperfecto de indicativo.csv', newline='') as csvfile:
reader = csv.reader(csvfile, delimiter=';')
rows = [row for row in reader]
return rows
def Preterito_indefinido():
with open('times irregular/Pretérito indefinido.csv', newline='') as csvfile:
reader = csv.reader(csvfile, delimiter=';')
rows = [row for row in reader]
return rows
def Pretero_imperfecto_de_subjonctivo():
with open('times irregular/Prétero imperfecto de subjonctivo.csv', newline='') as csvfile:
reader = csv.reader(csvfile, delimiter=';')
rows = [row for row in reader]
return rows
def Futuro():
with open('times irregular/Futuro.csv', newline='') as csvfile:
reader = csv.reader(csvfile, delimiter=';')
rows = [row for row in reader]
return rows
def Conditional():
with open('times irregular/Conditional.csv', newline='') as csvfile:
reader = csv.reader(csvfile, delimiter=';')
rows = [row for row in reader]
return rows