examples/lists/joining_integers.py
from __future__ import print_function

a = ["x", "2", "y"]
b = ["x", 2, "y"]
print(":".join(a))    # x:2:y
# print ":".join(b)    # TypeError: sequence item 1: expected string, int found

# convert elements to string using map or using list comprehension
print(":".join( map(str, b) ))        # x:2:y
print(":".join( str(x) for x in b ))  # x:2:y