Join function in Python
<p>I am writing code that reverses a string e.g. GOOD ---> DOOG w/o using the reverse() function. I'm almost there...</p>

<pre><code>a = "hello"

for i in range(1,len(a)+1): 

    print a[-i], 
</code></pre>

<p>When I complete the code with the join function, it doesn't work as I expect. Any ideas why? Driving me nuts. </p>

<pre><code>a = "hello"

for i in range(1,len(a)+1): 

    print ""join.a([-i],) 
</code></pre>
