title: for statement in python
body: <p>I'm confused about "x" in the python code below.</p>
  
  <pre><code>&gt;&gt;&gt; # Grocery list
  ... grocery_list = ['apples', 'bananas', 'oranges', 'milk']
  &gt;&gt;&gt; for x in grocery_list:
  ...     print(x, len(x))
  </code></pre>
  
  <p>I am confused about x's role in the for statement above. Is "x" a variable that is being defined within the for statement, or is it something else? It just seems different than how I am used to defining a variable, but I noticed "x" can be anything, which makes me think it is, in fact, a user-defined variable.</p>
  
  <p>Please help.</p>