title: Count sum of digits and blank spaces in txt file Python
body: <p>For this I'm to create a code that counts the number of "0" in a txt file but also the number of whites paces/blank spaces. I've completed this of much of it but i'm unsure how to count the blankspaces    </p>
  
  <pre><code>fname=open("done.txt", 'r')
  text = fname.read()
  count = 0
  countBlank=0
  for line in text:
      for char in line:
          if char.isdigit()==True:
              if char == "0":
                  count = count + 1
  print sum(count+countBlank)
  </code></pre>