We are used to using characters that each have the same number of bits, e.g., the 7-bit ASCII code.
However, some of these characters tend to occur more frequently in English (or in any languages with alphabets) than others.
If we used a variable number of bits for a code such that frequent characters use fewer bits and infrequent character use more bits, we can decrease the space needed to store the same information.
Example