The genetic code uses a triplet non-overlapping and degenerate code to encode proteins. A gene is a sequence of DNA bases that codes for a sequence of amino acids in a polypeptide chain. The genetic code uses triplets of bases to encode amino acids in a way that some codons code for the same amino acid, making the code redundant.