-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscripture_lookup.py
More file actions
38 lines (34 loc) · 1.23 KB
/
scripture_lookup.py
File metadata and controls
38 lines (34 loc) · 1.23 KB
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
# scripture_lookup.py -- lookup functions
from kjv_james_chapter1 import *
from niv_james_chapter1 import *
from rsv_james_chapter1 import *
def get_verse(chapter, verse):
"""Selecting a Bible verse to display."""
print()
try:
print(chapter[verse])
except KeyError:
print("That verse does not exist.")
except ValueError:
print("That is not a valid entry.")
def bible_multiverse():
"""Returns three versions of a Bible verse."""
try:
verse = int(input("\nEnter a verse number: "))
print('\nKing James Version')
get_verse(kjv_james_chapter1, verse)
print('...............................................................' \
'.....')
print('\nNew International Version')
get_verse(niv_james_chapter1, verse)
print('...............................................................' \
'.....')
print('\nRevised Standard Version')
get_verse(rsv_james_chapter1, verse)
print('...............................................................' \
'.....')
except KeyError:
print("That verse does not exist.")
except ValueError:
print("That is not a valid entry.")
bible_multiverse()