Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Python by (12.7k points)
I've been utilizing string.join() method in python 2 however it seems like it has been eliminated in python 3. What is the comparable/equivalent method in python 3?

string.join() method let me consolidate multiple strings along with a string in the middle of each other string. For instance, string.join(("a", "b", "c"), ".") would result "a.b.c".

1 Answer

0 votes
by (26.4k points)
edited by

Here, '.'.join() or ".".join() .So any string occurrence has the method join()

Come and join the python online course, if you want to learn python concepts in detail.

Browse Categories

...