How to run python code in Docker

Is there a tutorial for running python code more complicated than print(“Hello World!”)?
Thanks!