title: convert list to string using python reduce()
body: <p>I am trying to convert the list of input words ['hdjk', 'salsap', 'sherpa'] to output: 'hdjk salsap sherpa' using the reduce()</p>
  
  <p>Here is the code I am trying to work on:</p>
  
  <pre><code>from functools import reduce
  input_list =  ['hdjk', 'salsap', 'sherpa']
  list(reduce(lambda x,y: x+" "+y, input_list)) # This gives irrelevant output
  </code></pre>
  
  <p>I have also tried this:</p>
  
  <pre><code>xinpl = [x.split() for x in input_list]
  list(reduce(lambda x,y: x+" "+y, xinpl))
  </code></pre>
  
  <p>This code joins all the elements in the input_list and it works for me</p>
  
  <pre><code>print(" ".join(input_list))  
  </code></pre>
  
  <p>I looked at other similar threads and been trying this a lot:
  <a href="https://stackoverflow.com/questions/33006454/make-list-to-string-python/51691423#51691423">Make List to String Python</a></p>
  
  <p>I am still a learner. Gurus can your please help?</p>