This repository has been archived on 2024-04-17. You can view files and clone it, but cannot push or open issues/pull-requests.
dotfiles.nix/occasional-scripts/chapters.py

18 lines
442 B
Python

#!/usr/bin/env python
from __future__ import print_function, unicode_literals
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("num_chapters", type=int)
args = parser.parse_args()
task_templates = [
"read chapter {}",
"make chapter summary for chapter {}",
"make flashcards for chapter {}",
]
for i in range(1, args.num_chapters + 1):
for template in task_templates:
print(template.format(i))