title: How calling a function using dictionary works in python
body: <p>In order to call a function using dictionary we use the following code:</p>
  
  <pre><code>def f1():
      print ("One")
  
  def f2():
      print ("Two")
  
  def f3():
      print ("Three")
  
  dict = {1: f1, 2: f2, 3: f3}
  
  dict[1]()
  </code></pre>
  
  <p>How does the last line <code>dict[1]()</code> actually works?</p>