title: Create dynamic objects python
body: <p>For training, I want to atumaticly create users in a system using class.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>class CsrUser(object):
      def __init__(self, f_name, l_name, login, role, sex, password ='Hot12345'):
          self.f_name = f_name
          self.l_name = l_name
          self.login = login
          self.role = role
          self.sex = sex
          self.password = password
  </code></pre>
  
  <p>I want to create dynamic objects of the class from the user input,   </p>
  
  <pre><code>#i want to create something like this
  def get_users_data():
      new_user = input("Enter the user name")
      ... #get all the data
      new_user = CsrUser(...)
  </code></pre>
  
  <p>I want the name of the object to be the value that inside new_user</p>