title: dynamically creating variables in python
body: <p>I have a file that stores variable names and values like below:</p>
  
  <pre><code>name,David
  age,16
  score,91.2
  ...
  </code></pre>
  
  <p>I want to write a python script that reads the file and automatically creates variables in an object without me actually doing it, something like:</p>
  
  <pre><code>self.name='David'
  self.age=16
  self.score=91.2
  </code></pre>
  
  <p>Is it possible to do that?
  The reason I do this is there might be files containing very different types of variables which I don't know beforehand.</p>