<p><br>
On Dec 31, 2011 1:46 PM, "davidfx" <<a href="mailto:dgeorge29ca@gmail.com">dgeorge29ca@gmail.com</a>> wrote:<br>
><br>
> Thanks for your response. I know the following code is not going to be correct but I want to show you what I was thinking.<br>
><br>
> formatter = "%r %r %r %r"<br>
><br>
> print formatter % (1, 2, 3, 4)<br>
><br>
> What is the .format version of this concept?<br>
></p>
<p>format is a method of the string class. You store the string the same way you would any other.</p>
<p>formatter = "Hello, {}"<br>
print(formatter.format("world"))</p>