scripts for my gemini capsule
1
2
3
4
5
6
7
8
9
10
11
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:]))