title: Python create instance of class using string manipulation
body: <p>I wrote Class and created two lists. The first for the users and the second for the user-attributes.</p>
  <p>I would now like to loop trough the two lists in order to create multiple Class instances with the respective data.</p>
  <pre><code>class Employee:
      
      def __init__(self, first, last, pay):
          self.first = first
          self.last = last
          self.pay = pay
          self.email = first + '.' + last + '@company.com'
  
  
  emp_1 = Employee('Corey', 'Schafer', '50000')
  emp_2 = Employee('Test', 'User', '60000')
  </code></pre>
  <p>by printing <code>print(amp_1.email)</code> i can create the instance of the class:</p>
  <p>will print
  <code>Corey.Schafer@company.com</code></p>
  <p>Now i dont want to write it out manually so i want to loop trough it:</p>
  <pre><code>for user in users:
      for user_atr in user_atrs:
          print(user + '.' + user_atr)
  </code></pre>
  <p>will print:</p>
  <pre><code>empy_1.first
  empy_1.last
  empy_1.pay
  empy_1.email
  empy_2.first
  empy_2.last
  empy_2.pay
  empy_2.email
  </code></pre>
  <p>Instead of:</p>
  <pre><code>Corey
  Schafer
  50000
  Corey.Schafer@email.com
  Test
  User
  60000
  Test.User@email.com
  </code></pre>
  <p>How can i use that loop to actually create the instance of the class and not just the blueprint?</p>