title: Is there a way to store a function in a list or dictionary so that when the index (or key) is called it fires off the stored function?
body: <p>For instance, I've tried things like <code>mydict = {'funcList1': [foo(),bar(),goo()], 'funcList2': [foo(),goo(),bar()]</code>, which doesn't work.</p>
  
  <p>Is there some kind of structure with this kind of functionality? </p>
  
  <p>I realize that I could obviously do this just as easily with a bunch of <code>def</code> statements:  </p>
  
  <pre><code>def func1():
      foo()
      bar()
      goo()
  </code></pre>
  
  <p>But the number of statements I need is getting pretty unwieldy and tough to remember. It would be nice to wrap them nicely in a dictionary that I could examine the keys of now and again. </p>