title: Counting the characters in strings within a list, Python
body: <p>I am having difficulty with one of my homework questions.</p>
  
  <p>Basically, I am to create a function using a for loop to count the characters used in strings which are inside of a list. I am able to get the length of the strings with len(), but I can only get one of the strings and I can't seem to get it in list form.</p>
  
  <p>My Code:</p>
  
  <pre><code>def method1(input1):
  
      total = 0
  
      a = []
  
      for word in input1:
  
          total = len(word)
  
          a = [total]
  
      return a
  </code></pre>
  
  <p>This returns [3] with the input ['seven', 'one']</p>
  
  <p>Any help would be appreciated. I am very new to Python.</p>