a molecule consisting of a nitrogen-containing base (adenine, guanine, thymine, or cytosine in dna; adenine, guanine, uracil, or cytosine in rna), a phosphate group, and a sugar (deoxyribose in dna; ribose in rna). dna and rna are polymers comprised of many nucleotides, strung together like beads in a necklace.