Punch cards were used as input devices to instruct the Analytical Engine and input data, making it an early form of programming and data storage.