title: Building a python switch that calls functions
body: <p>I want to select from my function <code>numbers_to_month</code> and return the appropriate string (e.g. January). What is the best way to do this? 
  I tried assigning a variable to <code>numbers_to_month</code>. e.g. </p>
  
  <pre><code>&gt;&gt;&gt; test = numbers_to_months(1)
  one
  </code></pre>
  
  <p>Hoever when I call that variable, i was expecting the appropriate month but i get an error. e.g. </p>
  
  <pre><code>&gt;&gt;&gt; test()
  Traceback (most recent call last):
    File "&lt;pyshell#96&gt;", line 1, in &lt;module&gt;
      test()
  TypeError: 'NoneType' object is not callable
  </code></pre>
  
  <p>My code:</p>
  
  <pre><code>def one():
      return "January"
  
  def two():
      return "February"
  
  def three():
      return "March"
  
  def four():
      return "April"
  
  def five():
      return "May"
  
  def six():
      return "June"
  
  def seven():
      return "July"
  
  def eight():
      return "August"
  
  def nine():
      return "September"
  
  def ten():
      return "October"
  
  def eleven():
      return "November"
  
  def twelve():
      return "December"
  
  def numbers_to_months(argument):
      switcher = {
          1: "one",
          2: "two",
          3: "three",
          4: "four",
          5: "five",
          6: "six",
          7: "seven",
          8: "eight",
          9: "nine",
          10: "ten",
          11: "eleven",
          12: "twelve"
          }
      # Get the function from the switcher dictionary
      func = switcher.get(argument, lambda: "Invalid Month")
      # Execute the function
      print(func)
  </code></pre>