title: Python code prints output without print() command
body: <p>I've just started learning Python, and I've run into a small problem.
  I want to run a sample code given in the book I'm learning from. I am getting the desired output, but I'm also getting an output where I don't need it - there's no explanation in the book. </p>
  
  <p>Here's the code:</p>
  
  <pre><code>&gt;&gt;&gt; vowels = ['a', 'e', 'i', 'o', 'u']
  &gt;&gt;&gt; word = input("Provide a word to look for vowels in it: ")
  Provide a word to look for vowels in it: 
  Sample Word
  
  &gt;&gt;&gt; found = {}
  &gt;&gt;&gt; for letter in word:
  ...     if letter in vowels:
  ...         found.setdefault(letter, 0)
  ...         found[letter] += 1
  ... 
  0
  0
  0
  &gt;&gt;&gt; for k,v in sorted(found.items()):
  ...     print(k,' was found ', v, ' times.')
  ... 
  a  was found  1  times.
  </code></pre>
  
  <p>This code is used to find out the number of times a vowel appears in the input. The last output (which is in the print() command) is needed. However, the first for...loop gives the numeric output of how many times each vowel appears. I don't need that <strong>output</strong>. Any idea what's going on here?</p>
  
  <p>Just in case it matters, I'm using Head First Python to learn.</p>