O'Reilly logo
  • Jayaram Iyer thinks this is interesting:

It might help to remember: join() is the opposite of split(), as demonstrated here


Cover of Introducing Python


join() is opposite to split() and both are methods on string objects

It must be noted that join can only be used if the list (or the iterable) solely contains strings. If any other data types were present such as floats or integers-you end up with a TypeError