title: How do I fix my recursive function that converts a list to a string
body: <p>I want to convert a <code>list</code> to a <code>string</code> and using the following lines of code to find my desired string.</p>
  <p><strong>My Code</strong></p>
  <pre><code>def list_to_string2(values):
      num = &quot;&quot;
      x=0
      x= values[x]
      num += str(x)
      if len(values) == 0:
          return num
      else:
          return list_to_string2(values) + values.pop(0)
  
  values = [1, 2, 3, 4, 5]
  s2 = list_to_string2(values)
  print(s2)
  </code></pre>
  <p>Getting an issue like this: <code>RecursionError: maximum recursion depth exceeded while getting the str of an object</code></p>
  <p>I am having trouble with this challenge as I'm in the beginner stage of programming.</p>
  <p><em>Your assistance is highly appreciated. Thank you.</em></p>