Skip to article frontmatterSkip to article content

not working in a static site

here is a first, static, test; there is also another, better way with a dynamic interface thanks to jupyterlite

# spot exercises
import sys, os
cwd = os.getcwd()
modules = cwd.replace('notebooks', 'modules')
sys.path.append(modules)
from corrections.exo_pgcd import exo_pgcd

exo_pgcd.example()
Loading...
def pgcd(a, b):
    return b % a
exo_pgcd.correction(pgcd)
Loading...