title: "Can't assign to operator" error using dictionary
body: <p>I'm trying to use a simple dictionary to replace values on each line of a text file with their respective dictionary values but am getting the "can't assign to operator error" at the first line of the dictionary. Below is what I have so far...</p>
  
  <pre><code>#!/usr/bin/python
  
  import sys
  
  funcat-cog = {'Translation, ribosomal structure and biogenesis': 'J',
              'RNA processing and modification': 'A',
              'Transcription': 'K',
              'Replication, recombination and repair': 'L',
              'Chromatin structure and dynamis': 'B',
              'Cell cycle control, cell division, chromosome partitioning': 'D',
              'Defense mechanisms': 'V',
              'Signal transduction mechanisms': 'T',
              'Cell wall/membrane/envelope biogensis': 'M',
              'Cell motility': 'N',
              'Intracellular trafficking and secretion': 'U',                
              'Posttranslational modification, protein turnover, chaperones': 'O',
              'Energy production and conversion': 'C',
              'Carbohydrate transport and metabolism': 'G',
              'Amino acid transport and metabolism': 'E',
              'Nucleotide trnasport and metabolism': 'F',
              'Coenzyme transport and metabolism': 'H',
              'Lipid transport and metabolism': 'I',
              'Inorganic ion transport and metabolism': 'P',
              'Secondary metabolites biosynthesis, transport and catabolism': 'Q',
              'General function': 'R',
              'Function unknown': 'S',
              '.': '.'}
  
  fil = open(sys.argv[1])
  
  for line in fil:
      linearr = line.strip('\n')
      for k,v in funcat-cog.items():
              print v
  </code></pre>
  
  <p>Can anyone help me with figuring out what is wrong? Could it be a formatting error?</p>