title: Function Lists Python
body: <p>I am trying to figure out this problem on Codecademy, but I can not figure it out.
  Ok so I need to make this so it will return the number of times a word is said in a list.</p>
  
  <p>Here is what it says to do:</p>
  
  <blockquote>
    <p>Write a function that counts how many times the string "fizz" appears
    in a list. </p>
    
    <p>1.Write a function called fizz_count that takes a list x as input.</p>
    
    <p>2.Create a variable count to hold the ongoing count. Initialize it to
    zero. </p>
    
    <p>3.for each item in x:, if that item is equal to the string "fizz"
    then increment the count variable. </p>
    
    <p>4.After the loop, please return the
    count variable. </p>
    
    <p>For example, fizz_count(["fizz","cat","fizz"]) should
    return 2.</p>
  </blockquote>
  
  <p>Then here is what I have written:</p>
  
  <pre><code>def fizz_count(x):
      count = 0
      for item in x:
          if item == "fizz":
              count = count + 1
              return count
  </code></pre>
  
  <p>To look at this lesson the number is <strong>A Day at the Supermarket 4/13</strong></p>