title: Joining value(list) from <key, value> in dictionary
body: <p>I have a dictionary in format {'string-value-keys':[list-values]}. For a particular key value, I would like to retrieve the value as a string. Here is the example:</p>
  
  <pre><code>&gt;&gt;&gt; simpleDict= {'DDL_TABLE1':['create table bla', ' columns bla bla'], 'DML_TABLE1': ['insert into bla', ' values bla']}
  &gt;&gt;&gt; simpleDict
  {'DDL_TABLE1': ['create table bla', ' columns bla bla'], 'DML_TABLE1': ['insert into bla', ' values bla']}
  &gt;&gt;&gt; sqlQry= " ".join(value for key, value in simpleDict.items() if 'DDL' in key)
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  TypeError: sequence item 0: expected string, list found
  &gt;&gt;&gt; sqlQry= " ".join(value for key, value in simpleDict.items() if 'DDL' in key)
  </code></pre>
  
  <p>I am not able to understand why I am getting this error, when value is a list of string values.</p>