title: Using Python class as a data container
body: <p>Sometimes it makes sense to cluster related data together.  I tend to do so with a dict, e.g.,</p>
  <pre><code>group = dict(a=1, b=2, c=3)
  print(group['a'])
  </code></pre>
  <p>One of my colleagues prefers to create a class</p>
  <pre><code>class groupClass:
      def __init__(self, a, b, c):
          self.a = a
          self.b = b
          self.c = c
  
  group = groupClass(1, 2, 3)
  print(group.a)
  </code></pre>
  <p>Note that we are not defining any class methods.</p>
  <p>I like to use a dict because I like to minimize the number of lines of code.  My colleague thinks the code is more readable if you use a class, and it makes it easier to add methods to the class in the future.</p>
  <p>Which do you prefer and why?</p>