how to join strings 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 join strings in python
str1 = "Help"
str2 = "developers!"
print(str1 + ' ' + str2)