title: Storing Tuple values in list of Class Objects
body: <p>I have a python code that extracts info from database. The results are stored in a tuple within a list. I would like to store the tuple information in a class object. Since there are more than one result returned from query, I want to use List of class Object. I do not know how to assign value. Below is the snippet:</p>
  
  <pre><code>#Class
  class StudentDetails():
      def __init__(self, id, Name, Status):
          self.id= id
          self.Name= Name        
          self.Status= Status
  
  def main():
  
      results= LinkCursor.fetchall() #databse results
  </code></pre>
  
  <p>The result is of form list:
  [(1, 'XYZ', 'P'), (2, 'ABC', 'P'), (3, 'DEF', 'A'), (4, 'MNO', 'P')]</p>
  
  <p>In Summary, I want to store result in different Class objects, 
  Student1 =StudentDetails(1, 'XYZ', 'P') 
  Student2 =StudentDetails(2, 'ABC', 'P')</p>