title: How to join mixed list (array) (with integers in it) in Python?
body: <p>I have a list (array) with mixed </p>
  
  <pre><code>a = ["x", "2", "y"]
  b = ["x", 2, "y"]
  print ":".join(a)
  print ":".join(b)
  </code></pre>
  
  <p>The first join works, but the second one throws a TypeError exception </p>
  
  <p>I came up with this, but is this the Python solution?</p>
  
  <pre><code>print ":".join(map(str, b))
  </code></pre>
  
  <p>BTW in the end I just would like to write this string to a file, so if there is a specific solution for that, I'd appreciate that too.</p>