Sorry about that kent. 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> <<a href="mailto:kent37@tds.net">kent37@tds.net</a>
> 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>> Something in python disturbs me ,<br>><br>> when i write a for loop,
<br>><br>> i am able to access the variable declared in that loop after the loop<br>> finishes which i am not able to do in languages like c/c++ or java. Is<br>> 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 - <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