Hello Python developers!

I'm a Java one and I know that there is a way of running Java code on the fly, but my question is, is there any way to do that with Python?

The main goal here is to enable middle-school students to start coding with chromebooks from day one on Python.

I've been looking for some resources, but I got nothing so far.

Thanks a lot!