The opposite effect of str.split() is joining a list of strings. For example, joining [“a”, “b”, “c”] results in “abc”.
Solution for How to do the opposite of a split in Python : You can use str.join() to join a list of strings Call str.join(iterable) to join a list of strings iterable separated by str. This is the opposite effect of str.split().