title: What is the use of for in python
body: <p>I am not understanding what for in doing in the code below can someone help me.</p>
  
  <pre><code>s = ' Abs3 asdasd asd11 111 11ss'
  
  alpha_count = 0
  digit_count = 0
  for c in s:    ## here we are looping over every character in the string
      if c.isalpha():
          alpha_count += 1
      elif c.isdigit():
          digit_count += 1
  
  print(alpha_count, digit_count)
  
  (14,8)
  
  </code></pre>