Skip to article frontmatterSkip to article content

see all options in https://mystmd.org/guide/exercises
as well as https://ebp-sphinx-exercise.readthedocs.io/en/latest/syntax.html

in particular there is a hidden attribute that may come in handy but I have not explored in depth yet

native MyST exercise

here’s a sample

native MyST solution

here’s a sample solution for the above exercise

Solution to Exercise 1 #

the solution

one can use ```{code-block} to insert code
def fact(n):
    pass

without this feature

before that we have used an admonition with a seealso class

I don’t have a very stable way to present solutions, here’s one suboptimal way to do it with a :class: dropdown warning directive