I have looked everywhere, and can't find an answer. I am about 1-2 weeks old to Python so not very long. How can I join different items in lists with a string?
In my case, I want to show the 3D dimensions of an object: (Simplified a lot)
my_list = [1, 2, 3]
join_list = my_list[0],"x",my_list[1],"x",my_list[2]
print(join_list)
This returns with:
(1, 'x', 2, 'x', 3)
I am aiming to get 1x2x3 instead of (1, 'x', 2, 'x', 3). Any ideas? Thanks!