String formatting is done with the string formatting operator, the percent (%) sign. : Format : String PYTHON TUTORIALS


PYTHON TUTORIALS » String » Format »

 

String formatting is done with the string formatting operator, the percent (%) sign.


format = "Hello, %s. %s enough for ya"
values = ('world', 'Hot')
print format % values

k = "uid" 
v = "sa" 
print "%s=%s" (k, v)



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo String
» Format