On Thu, Jun 25, 2015 at 06:07:30PM -0700, fl wrote:
Hi,

I read Ned's tutorial on Python. It is very interesting. On its last
example, I cannot understand the '_' in:



board=[[0]*8 for _ in range(8)]


I know  '_' is the precious answer, but it is still unclear what it is
in the above line. Can you explain it to me?

Its just a variable whose value isn't used in this specific expression, you 
could use 'x', 'y', or any other valid variable
name there and it should work.


--
Atnakus Arzah <atnakus.ar...@gmail.com>

When in doubt, have a cookie!

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to