Lists are a great data structure but they’re not always useful, for example when writing a database or if you’re building a URL from a series of values in a list, you may prefer a <class ‘str’>. Let’s take the later instance in this example.
list1 = ['www','example','com']
string = '.'.join(list1)
Breaking it down is very simple, in calling a […]