Herman Hollerith realized that he could encode information on
punch cards when he observed that
train conductors encode the appearance of the ticket holders on the train tickets using the position of punched holes on the tickets
[2]. Hollerith then encoded the 1890 American census data on punch cards.