title: Variable in Dictionary Value String Python
body: <p>I am writing some values and a SQL query string to a dictionary in python. I would like to use one of the values as a filter criteria for the SQL but I am not able to pass it in. What am I doing wrong?</p>
  
  <pre><code>My_DICT = [
      {'Sale_Type' : 'Car', 'Sale_Length' : 5, "Query_String" : "select * from Sales where Length &gt; %s" % (My_DICT [Sale_Length])}
      ]
  </code></pre>
  
  <p>So what I want is for the query to be:</p>
  
  <pre><code>select * from Sales where Length &gt; 5
  </code></pre>