join two string in array in python code example
Example 1: Concatenate Item in list to strings
>>> sentence = ['this','is','a','sentence']
>>> '-'.join(sentence)
'this-is-a-sentence'
Example 2: how to concat join 2 strings in python
str1 = “Hello”
str2 = “World”
str1 + str2