Mendel learned from the study of peapods the basis for recessive and dominant gene composition as well as the cell of a plant can contain two different traits but not both traits.
Mendel used pea plants to test his theories on genetics. Pea plants can either be dominant colored(purple) or recessively(white), so they worked well for testing genetics.