Multiple Choice Widget

Configured via JavaScript

Question and options are passed as a plain config object.

Configured via HTML

The widget is described in a div.marimo-multiple-choice block. The correct answer index is given by data-correct on the outer div; the question comes from the <p> and options from the <ol>.

Which keyword is used to define a function in Python?

  1. function
  2. fun
  3. def
  4. define