title: Python letter counting in dict not counting
body: <p>So I was trying to make a word by word counter in python but I kept counting only the letter once. I mean that if the letter was occuring more than once in a sentence the dictionary would not update it is a easy problem but Im just getting started</p>
  
  <pre><code>enter code here
  
  import string
  """creating a dict made of letters and values as 0"""
  counter=dict.fromkeys(string.ascii_lowercase,0)
  test=counter
  
  first=str(input("enter a sentence:"))
  def fuc():
     char=counter.keys()
     for i in char:
          if i in first and char:
              test[i] = first.count(i)
  
  fuc()
  print(test) 
  </code></pre>