Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Project: CSCI 195
Views: 5933
Image: ubuntu2004
1
from parse_bible import bible, books
2
3
word = input('Enter a word you wish to find the first occurrence of: ')
4
5
for book in books:
6
for chapter_num, chapter in enumerate(bible[book]):
7
for verse_num, verse in enumerate(chapter):
8
if word in verse:
9
print("First mention of {} is in {} {}:{}".format(word, book, chapter_num+1, verse_num+1))
10
exit()
11
12
13