from parse_bible import bible, books
book = ""
while book not in bible:
book = input('Enter the desired book: ')
if book not in bible:
print ('{} is not a valid abbreviation for a book. Try again'.format(book))
book_chapters = bible[book]
list = [ ]
for c in book_chapters:
list.append(len(c))
print ("{}: {}".format(book, max(list)))
print ('The chapter is {}'.format(list.index(max(list)) + 1))