title: How to count the amount of vowels and consonants in a text file?
body: <p>I am trying to correctly count the number of vowels and consonants in a text file but I am lost currently. I have the other parts that need to be found done. </p>
  
  <pre><code># Home work 4
  from string import punctuation
  
  fname = raw_input("Enter name of the file: ")
  fvar = open(fname, "r")
  punctuationList = "!#$%&amp;'(),.:;?"
  numLines = 0
  numWords = 0
  numChars = 0
  numPunc = 0
  numVowl = 0
  numCons = 0
  
  
  if line in "aeiou":
      numVowl = + 1
  else:
      numCons += 1
  
  for line in fvar:
      wordsList = line.split()
      numLines += 1
      numWords += len(wordsList)
      numChars += len(line)
  for punctuation in punctuationList:
      numPunc += 1
  
  
  print "Lines %d" % numLines
  print "Words %d" % numWords
  print "The amount of charcters is %d" % numChars
  print "The amount of punctuation is %d" % numPunc
  print "The amount of vowls is %d" % numVowl
  print "The amount of consonants is %d" % numCons
  </code></pre>