title: How to assign values to class instance attributes in a loop
body: <pre><code>class User:
      num_of_user = 0
      def __init__(self,name):
          self.name = name
          User.num_of_user += 1
  
  user_1 = User('A')
  user_2 = User('B')
  ....
  
  class Value(User):
      def __init__(self,name,value):
          User.__init__(self, name)
          self.value = value
  
  # --&gt; user_1.value = read a new manual input
  # --&gt; user_2.value = read a new manual input
  ....
  </code></pre>
  
  <p>I am not familiar with how to present instances/attributes correctly in Class.</p>
  
  <p>How to write above comment in a For loop?</p>