list1 = [1, 2, 3] str1 = ''.join(str(e) for e in list1)
Here is what the above code is Doing:
1. We create a list of integers.
2. We use the built-in function join() to convert the list to a string.
3. We pass the string to the print() function to print it to the console.