Pyodide

Business logic written in Python, executed at runtime using Pyodide. Source is embedded as a string in a Javascript block.

It takes several seconds for the interpreter to download and initialize; once the interpreter is ready, the validate buttons will become enabled.

This demo does not currently work on Safari due to Safari's lack of a streaming WebAssembly loader, which is required by Pyodide.

Source code: luhn.js