title: How to find the codons that codes for the same amino acid in python?
body: <p>I have a txt file with all the codons and the amino acids, look like this:</p>
  
  <pre><code>CTT L
  ATG M
  ACA T
  ACG T
  ATC I
  AAC N
  ATA I
  AGG R
  CCT P
  ACT T
  AGC S
  AAG K
  AGA R
  CAT H
  AAT N
  ATT I
  CTG L
  CTA L
  CTC L
  CAC H
  AAA K
  CCG P
  AGT S
  CCA P
  CAA Q
  CCC P
  TAT Y
  GGT G
  TGT C
  CGA R
  CAG Q
  TCT S
  GAT D
  CGG R
  TTT F
  TGC C
  GGG G
  TAG *
  GGA G
  TAA *
  GGC G
  TAC Y
  TTC F
  TCG S
  TTA L
  TTG L
  TCC S
  ACC T
  TCA S
  GCA A
  GTA V
  GCC A
  GTC V
  GCG A
  GTG V
  GAG E
  GTT V
  GCT A
  TGA *
  GAC D
  CGT R
  TGG W
  GAA E
  CGC R
  </code></pre>
  
  <p>How do I retrieve these information and make the output in such way that for each amino acid,its coresponding codons are shown. Like:</p>
  
  <pre><code>F [TTT, TTC]
  L [TTA, TTG, CTT, CTC, CTA, CTG]
  </code></pre>
  
  <p>......</p>
  
  <p>Anyone?</p>