python tip

Creating a single string from elements of a list

We can simply create a single string from all the elements of a given list by using "." with the join() function inside the print statement with the list variable. So, by this, we can easily get the single string data format from the multiple data elements given in list format. Example: Output: