Punched cards are used to create image patterns on a piece of fabric during weaving, computers use program codes to create images on a screen.
The punched cards are analogous to computer program code. If you understand that, you understand how computers work.