Joining Strings : Join : String PYTHON TUTORIALS


PYTHON TUTORIALS » String » Join »

 

Joining Strings


word1 = "A"
word2 = "few"
word3 = "good"
word4 = "words"
wordList = ["A""few""more""good""words"]

print "Words:" + word1 + word2 + word3 + word4
print "List: " ' '.join(wordList)



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo String
» Join