This method is same as mkString() method but here a start, a separator and an end is also included.
Method Definition: defmkString(start: String, sep: String, end: String): String
Return Type: It returns the elements of the list as a string along with a stated start, separator and an end.
Let’s check some examples.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.