Question: how join works in python?
Answer: Python String join() method The join() method provides a flexible way to create strings from iterable objects. It joins each element of an iterable (such as list, string and tuple) by a string separator (the string on which the join() method is called) and returns the concatenated string.