join(list [,sep]) -> string Return a string composed of the words in list, with intervening occurrences of sep. The default separator is a single space. (joinfields and join are synonymous)
(words, sep = ' ')
| 306 | |
| 307 | # Join fields with optional separator |
| 308 | def join(words, sep = ' '): |
| 309 | """join(list [,sep]) -> string |
| 310 | |
| 311 | Return a string composed of the words in list, with |
| 312 | intervening occurrences of sep. The default separator is a |
| 313 | single space. |
| 314 | |
| 315 | (joinfields and join are synonymous) |
| 316 | |
| 317 | """ |
| 318 | return sep.join(words) |
| 319 | joinfields = join |
| 320 | |
| 321 | # Find substring, raise exception if not found |
no test coverage detected