title: How do I add data to a list of objects?
body: <p>#I know there's an easier approach to this problem but right now I have a list of objects and a list of data that needs to be added to each object individually. My code looks like this:</p>
  <pre><code>data=[1,2,3,4,5,5,5,6,6,6.5]
  class Person(object):
    def __init__(self,name):
      self.name=name
     self.data=0.0
  
  Aiden=Person(&quot;Aiden&quot;)
  AidenTwo=Person(&quot;AidenTwo&quot;)
  AidenThree=Person(&quot;AidenThree&quot;)
  AidenFour=Person(&quot;AidenFour&quot;)
  AidenFive=Person(&quot;AidenFive&quot;)
  AidenSix=Person(&quot;AidenSix&quot;)
  AidenSeven=Person(&quot;AidenSeven&quot;)
  AidenEight=Person(&quot;AidenEight&quot;)
  AidenNine=Person(&quot;AidenNine&quot;)
  AidenTen=Person(&quot;AidenTen&quot;)
  
  list_of_people=[]
  list_of_people.append(Aiden)
  list_of_people.append(AidenTwo)
  list_of_people.append(AidenThree)
  list_of_people.append(AidenFour)
  list_of_people.append(AidenFive)
  list_of_people.append(AidenSix)
  list_of_people.append(AidenSeven)
  list_of_people.append(AidenEight)
  list_of_people.append(AidenNine)
  list_of_people.append(AidenTen)
  
  
  
  for p in range(0,len(list_of_people)):
    Person.data=data[p]
  #This line/ for loop right here is the problem.
  </code></pre>