Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Project: CSCI 195
Views: 5933
Image: ubuntu2004
1
bible = dict()
2
3
books = list()
4
5
with open("kjv.atv") as bible_file:
6
for line in bible_file:
7
line = line.rstrip()
8
parts = line.split("@")
9
book = parts[0]
10
reference = parts[1]
11
verse_text = parts[2]
12
13
parts = reference.split(":")
14
chapter = int(parts[0])
15
verse = int(parts[1])
16
17
if book in bible:
18
book_chapters = bible[book]
19
else:
20
book_chapters = list()
21
bible[book] = book_chapters
22
books.append(book)
23
24
if len(book_chapters) >= chapter:
25
book_chapters[chapter-1].append(verse_text)
26
else:
27
book_chapters.append([verse_text])
28
29
abbreviations = {
30
"Ge": "Genesis",
31
"Exo" : "Exodus",
32
"Lev": "Leviticus",
33
"Num" : "Numbers",
34
"Deu":"Deuteronomy",
35
"Josh": "Joshua",
36
"Jdgs": "Judges",
37
"Ruth": "Ruth",
38
"1Sm": "1st Samuel",
39
"2Sm": "2nd Samuel",
40
"1Ki": "1st Kings",
41
"2Ki": "2nd Kings",
42
"1Chr": "1st Chronicles",
43
"2Chr": "2nd Chronicles",
44
"Ezra": "Ezra",
45
"Neh": "Nehemiah",
46
"Est": "Esther",
47
"Job": "Job",
48
"Psa": "Psalms",
49
"Prv": "Proverbs",
50
"Eccl": "Ecclesiastes",
51
"SSol": "Song of Solomon",
52
"Isa": "Isaiah",
53
"Jer": "Jeremiah",
54
"Lam": "Lamentations",
55
"Eze": "Ezekiel",
56
"Dan": "Daniel",
57
"Hos": "Hosea",
58
"Joel": "Joel",
59
"Amos": "Amos",
60
"Obad": "Obadiah",
61
"Jonah": "Jonah",
62
"Mic": "Micah",
63
"Nahum": "Nahum",
64
"Hab": "Habbakuk",
65
"Zep": "Zepheniah",
66
"Hag": "Haggai",
67
"Zec": "Zechariah",
68
"Mal": "Malachi",
69
'Mat': 'Matthew',
70
'Mark': 'Mark',
71
'Luke': 'Luke',
72
'John': 'John',
73
'Acts': 'Acts',
74
'Rom': 'Romans',
75
'1Cor': '1st Corinthians',
76
'2Cor': '2nd Corinthians',
77
'Gal': 'Galatians',
78
'Eph': 'Ephesians',
79
'Phi': 'Phillipians',
80
'Col': 'Colossians',
81
'1Th': '1st Thessalonians',
82
'2Th': '2nd Thessalonians',
83
'1Tim': '1st Timothy',
84
'2Tim': '2nd Timothy',
85
'Titus': 'Titus',
86
'Phmn': 'Philemon',
87
'Heb': 'Hebrews',
88
'Jas': 'James',
89
'1Pet': '1st Peter',
90
'2Pet': '2nd Peter',
91
'1Jn': '1st John',
92
'2Jn': '2nd John',
93
'3Jn': '3rd John',
94
'Jude': 'Jude',
95
'Rev': 'Revelation'
96
}
97
98
99