title: Converting the contents of a CSV file into a dictionary
body: <p>The code I have so far is in a function that basically reads a csv file and prints it's contents:</p>
  
  <pre><code>def read(filename):
      with open(filename, 'r') as csvfile:
          reader = csv.reader(csvfile, delimiter=',')
          for row in reader:
              print(row)
  </code></pre>
  
  <p>Contents of <code>sailor.csv</code>:</p>
  
  <pre><code>name, mean performance , std dev
  Alice, 100, 0,
  Bob, 100, 5,
  Clare, 100, 10,
  Dennis, 90, 0,
  Eva, 90, 5,
  </code></pre>
  
  <p><code>read('sailor.csv')</code> and running the function</p>
  
  <p>current output:</p>
  
  <pre><code>['name', ' mean performance ', ' std dev']
  ['Alice', ' 100', ' 0', '']
  ['Bob', ' 100', ' 5', '']
  ['Clare', ' 100', ' 10', '']
  ['Dennis', ' 90', ' 0', '']
  ['Eva', ' 90', ' 5', '']
  </code></pre>
  
  <p>required output:</p>
  
  <pre><code>{'Dennis': (90.0, 0.0), 'Clare':(100.0, 10.0), 
  'Eva': (90.0, 5.0), 'Bob': (100.0, 5.0), 'Alice': (100.0, 0.0)}
  </code></pre>
  
  <p>any ideas how I can achieve that output? Using Python 3.4.2 if that helps, explanation of your answer will be appreciated!</p>