title: Net Present Value Function Using List of Dictionaries
body: <p>For Lists and tuples I've been able to do the same thing to find NPV</p>
  
  <pre><code>cash_flow_list_of_lists = [[1, 200], [4, 500], [7, 1600]]
  </code></pre>
  
  <h1>Compute and print the present value as per above</h1>
  
  <pre><code>NPV=sum([cash_flow/(1.1**year) for year,cash_flow in 
  cash_flow_list_of_lists])
  print("Present Value = " , (f"{NPV:9,.2f}"))
  </code></pre>
  
  <p>How do I do this with a dictionary list</p>
  
  <pre><code>cash_flow_dictionary = {1: 200, 4: 500, 7: 1600}
  </code></pre>
  
  <h1>Compute and print the present value as per above</h1>
  
  <p>I tried 
      NPV=sum([cash_flow_dictionary.values()]/(1.1**cash_flow_dictionary.keys()) in cash_flow_dictionary)</p>
  
  <p>But I have no idea how to do this</p>