<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Thanks again Alan.&nbsp; Much clearer now.&nbsp; One final part I don't understand.
<div>&nbsp;</div>
<div>&gt;&gt;&gt; "%d is the result of %d + %d" % (6+7,6,7)</div>
<div>&nbsp;</div>
<div>I understand (I think) the 6+7 part but why the ,6,7 after that.&nbsp; I could <br>see how either '6+7' or '6,7' would be the correct format but not both.</div>
</div></div></blockquote><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div><br>The format string has 3 percent markers - all numbers.<br>It is therefore expecting 3 values, so I have to give it them.<br>The first marker gets 6+7, ie 13. The second gets 6 <br>the third 7...<br><br>Look at the first example in the loops topic in my tutorial.<br>It uses variables in the same way rather than literal values, <br>that might make it more obvious. Maybe :-)<br>&nbsp;</div></div></div>HTH,<br><br>Alan G.<br><br></div></body></html>