<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 1 June 2015 at 10:30, Mark Lawrence <span dir="ltr"><<a href="mailto:breamoreboy@yahoo.co.uk" target="_blank">breamoreboy@yahoo.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On 01/06/2015 00:23, Tim Delaney wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">The for statement must have a colon at the end of line e.g. a complete<br>
for statement and block is:<br>
<br>
for br in b:<br>
     print br<br>
<br>
This will output the characters one per line (on Python 3.x), since that<br>
is what the reversed() iterator will return. You will need to do<br>
something else to get it back to a single string.<br>
</span></blockquote>
<br>
Will it indeed?  Perhaps fixing the syntax error will get something to print :)</blockquote><div><br></div><div>Indeed - as Mark is so gently alluding to, I've done the reverse of what I said - given Python 2.x syntax instead of Python 3.x.</div><div><br></div><div>That should have been:</div><div><br></div><div>for br in b:<br>     print(br)<br></div><div><br></div><div>Tim Delaney </div></div></div></div>