Sorry about that kent.&nbsp; I just realized I emailed you directly.<br><br>Ezra<br><br><div><span class="gmail_quote">On 4/24/07, <b class="gmail_sendername">Kent Johnson</b> &lt;<a href="mailto:kent37@tds.net">kent37@tds.net</a>
&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">ammar azif wrote:<br>&gt; Something in python disturbs me ,<br>&gt;<br>&gt; when i write a for loop,
<br>&gt;<br>&gt; i am able to access the variable declared in that loop after the loop<br>&gt; finishes which i am not able to do in languages like c/c++ or java. Is<br>&gt; it different in python?<br><br>Yes, it is different. In Python a block is not a scope. Names bound
<br>within the block, including the loop variable, are accessible outside<br>the block.<br><br>Kent<br>_______________________________________________<br>Tutor maillist&nbsp;&nbsp;-&nbsp;&nbsp;<a href="mailto:Tutor@python.org">Tutor@python.org
</a><br><a href="http://mail.python.org/mailman/listinfo/tutor">http://mail.python.org/mailman/listinfo/tutor</a><br></blockquote></div><br><br clear="all"><br>-- <br>Ezra Taylor