diff options
| author | Zach DeCook <zachdecook@librem.one> | 2022-10-19 21:02:05 -0400 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2022-10-19 21:02:05 -0400 |
| commit | 17144656f59dc3d1b3383888abcddf0d38d16ae0 (patch) | |
| tree | f47918379fcc52c08e16df7382a22be9061ca28e /chapterN.py | |
| parent | 8cf204e2349ed6fd9afd64a1f696b56e9189ddda (diff) | |
| download | cgi-bin-17144656f59dc3d1b3383888abcddf0d38d16ae0.tar.gz | |
Bible reading plan: Add Professor Grant Horner's plan
Diffstat (limited to 'chapterN.py')
| -rw-r--r-- | chapterN.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/chapterN.py b/chapterN.py new file mode 100644 index 0000000..0f11adf --- /dev/null +++ b/chapterN.py @@ -0,0 +1,12 @@ +import bible +import sys +def main(n, books): + for book in books: + cc = len(bible.find_book(book)[1]['verse_counts']) + if n <= cc: + return book + " " + str(n) + n = n - cc + + +if __name__ == '__main__': + print(main(int(sys.argv[1]), sys.argv[2:])) |
