title: use a variable in python as string query to pass parameter in url
body: <p>I want to use query strings to pass values through a URL. For example:</p>
  
  <pre><code>http://127.0.0.1:5000/data?key=xxxx&amp;secret=xxxx
  </code></pre>
  
  <p>In Python, how can I add the variables to a URL? For example:</p>
  
  <pre><code>key = "xxxx"
  secret = "xxxx"
  url = "http://127.0.0.1:5000/data?key=[WHAT_GOES_HERE]&amp;secret=[WHAT_GOES_HERE]"
  </code></pre>