Random Numbers

Learn how to use Transcrypt to call JavaScript functions from Python and vice versa.

JS functions

At its most basic, Transcrypt allows Python code to call JavaScript functions and enables JavaScript functions to call Python functions. Let’s look at an example that explicitly does both.

This simple example is similar to the previous “Hello, World!” application we did:

Get hands-on with 1400+ tech skills courses.