+ 4
Placeholder variables are pseudo-variables used in string to format ( template ) some data: a = "holes" b = "sentence" c = "filled" print("There are {0} in this {1}, expected to be {2}".format(a,b,c)) ... should output: There are holes in this sentence, expected to be filled ... more details here: https://pyformat.info
14th May 2017, 5:31 AM
visph
visph - avatar