title: creating a list of properties vs getters and setters in python
body: <pre><code>class OurAtt():
      def __init__(self):
          pass
  
  class OurClass:
  
      def __init__(self):
          self.__OurAtt = OurAtt()
  
      @property
      def OurAtt(self):
          return self.__OurAtt
  
      @OurAtt.setter
      def OurAtt(self, val):
          if val &lt; 0:
              self.__OurAtt = 0
          elif val &gt; 1000:
              self.__OurAtt = 1000
          else:
              self.__OurAtt = val
  
  
  x = OurClass()
  x.OurAtt.Var1 = 1
  print x.OurAtt.Var1
  </code></pre>
  
  <p>Questions:</p>
  
  <ol>
  <li><p>How to create a list of 100 variables like x.OurAtt.Var1, x.OurAtt.Var2 .. x.OurAtt.Var100 and assign them initial value 1,2 ....100.</p></li>
  <li><p>Is it possible do to something like this x.OurAtt.Var[1..100] = [1..100]? Basically need List with properties.</p></li>
  </ol>