- join() is a python in-build function which convert the given sequence into the string.this sequence may be list, tuple , set and range.
syntax is ''.join(seq)
list is ["one","two","third"]
string we want is "one-two-third"
#join on list
#join on set
-In this program, we convert the list or set into the string by using ''.join(seq) and print them.
- here seq must contain string or alphabet, if sequence contain integer or float value then it will generate the error like TypeError: sequence item 0: expected str instance, int found