There are many sites that can turn your code into a cool image. Some of them are the carbon the livecode247 the snappify the ray.so and so on.
I prefer the carbon where you can connect using your GitHub account. Let’s see an example of a Python code.
And then we can export the image (open or download).