title: Python one-liner to map array to string format
body: <p>Similar to javascript, how could I map a list to a string format in Python?</p>
  <p>Such as</p>
  <pre><code>final_str = mylist.map(n =&gt; f'{n.id} {n.name}\n')
  </code></pre>
  <p>And the resulting string would be</p>
  <pre><code>id1 name1
  id2 name2
  ...etc
  </code></pre>