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
book = ""
4
while book not in bible:
5
book = input('Enter the desired book: ')
6
if book not in bible:
7
print ('{} is not a valid abbreviation for a book. Try again'.format(book))
8
9
book_chapters = bible[book]
10
11
list = [ ]
12
for c in book_chapters:
13
list.append(len(c))
14
15
print ("{}: {}".format(book, max(list)))
16
17
print ('The chapter is {}'.format(list.index(max(list)) + 1))
18
19