Genes are the functional segments of the DNA. They provide traits or characteristics to organisms that pass on from generation to generation. These are nucleotide sequences of DNA which encodes the genetic information.
Genes determine the character of organism and they can also affect specific traits through any mutation via external or internal environment.