title: python do dictionary vertically instead of horizontally with reading csv file
body: <p>so after I open a csv file with the context:</p>
  
  <pre><code>name,email,age
  TOM,tom@email.com,13
  BOB,bob@email.com,14
  ANN,ann@email.com,15
  </code></pre>
  
  <p>I want to have the output like this:</p>
  
  <pre><code>{'name':['TOM','BOB','ANN'], 'email':['tom@email.com','bob@email.com','ann@email.com'], 'age':['13','14','15']}
  </code></pre>
  
  <p>This is my code so far, how do I get to that output?</p>
  
  <pre><code>def read_table(file_name):
  open('file.csv') as lines
  dic = {}
  i=0
  for line in lines:
      line = line.split(',')
      if line in lines[0]:
          key == line[i]
      elif line in lines[1:]:
          value == line[i]
      i+=1
      dic[key]=value
      print(dic)
  </code></pre>
  
  <p>Can someone please tell me where did I do wrong? Thank you</p>