Docker images and their OS

Some tutorials about Docker, make a Dockerfile and they pull an Ubuntu image (operating system), but others pull things like Python (without operating system). How is that possible? What OS Docker images use?

Hi

Think it as python also has to make a dockerfile to create their image, so they likely have in their dockerfile:
FROM debian:slim (or something like that)