Formatted String : Format : String PYTHON TUTORIALS


PYTHON TUTORIALS » String » Format »

 

Formatted String


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


#Formatted String
sentence = ("First: %s %s %s %s." %(word1,word2,word3,word4))
print sentence



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo String
» Format