Skip to content

Instantly share code, notes, and snippets.

@thegreekgeek
thegreekgeek / PracticeQuestionExtract.py
Created October 22, 2025 14:36
Extracts practice questions from RCTC COMP1150 with Joseph
import nbformat
import glob
import re
practiceHeadingPattern = re.compile(r'\*\*practice\s+\w+\*\*', re.IGNORECASE)
# Step 1: Locate all notebook files in the current directory
notebook_files = glob.glob("*.ipynb")
# A list to store matching markdown cells

Keybase proof

I hereby claim:

  • I am thegreekgeek on github.
  • I am thegreekgeek (https://keybase.io/thegreekgeek) on keybase.
  • I have a public key ASAci77PlPC92muMxfbxxbysqjUq7lvBk6KeFsUL-lMjfQo

To claim this, I am signing this object: