Can anybody explain the '-' in a 2-D creation code?

fl rxjwg98 at gmail.com
Thu Jun 25 21:07:30 EDT 2015


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?


Thanks,



More information about the Python-list mailing list