What is the method does join() in python belong to?

Questions by Remasri   answers by Remasri

Showing Answers 1 - 39 of 39 Answers

Tanmoy

  • Oct 16th, 2007
 

String method

  Was this answer useful?  Yes

toloco

  • Feb 7th, 2012
 

Join belongs to multi-threading module, and is used to join threads

  Was this answer useful?  Yes

jayavanth

  • Apr 29th, 2013
 

Join is built in string function used for string separation.

  Was this answer useful?  Yes

bibin

  • Dec 23rd, 2014
 

Join used on string, list containing string items and tuple containing string items.
x.join(123) -> 1x2x3
x.join([12, 3]) -> 12x3, note if any of the item in the list is not a string, it throws an error

  Was this answer useful?  Yes

frank

  • Apr 21st, 2015
 

thread.join() -- Joins the context of the thread to the main programs context.

  Was this answer useful?  Yes

suchitra

  • Aug 3rd, 2015
 

Joins the string literals.
Ex: x = "".join(123) results in x=123

  Was this answer useful?  Yes

Pratima

  • Jul 22nd, 2016
 

It is used to join any iterables.

  Was this answer useful?  Yes

Venkat

  • Aug 22nd, 2016
 

This method allow programmer join a string to sequence, this is different than concatenation, good example for it
Example:
str1 = " "
sqeuance1 = ("hello","Jhon","welcome","to","python","programming")
new_str = str1.join(sqeuance1)
print new_str
In above example sequence1 has list of words which are going to be joined together with value in str1 and result in a string.
Out put for the above example is going to be "hello jhon welcome to python programming" all words (in sequence1 list) are concatenated with space (which is str1)

Code
  1. str1 = " "

  2. sqeuance1 = ("hello","Jhon","welcome","to","python","programming")

  3. new_str = str1.join(sqeuance1)

  4. print new_str

  5.  

  6.  

  Was this answer useful?  Yes

Vikas

  • Oct 24th, 2016
 

Code
  1.  .join[x for x in sqeuance1]

  Was this answer useful?  Yes

Ravindra Kumar Singh

  • Jul 6th, 2017
 

Join method is used to concatenate the elements of any list.

  Was this answer useful?  Yes

uday bhaskar kumar

  • Jul 25th, 2017
 

.join([]). It takes any iterables into this method.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions