E
E
Ed10242015-09-20 21:43:39
Python
Ed1024, 2015-09-20 21:43:39

Can't access list item?

I can not access the list element (fig2), initialization and filling on
61e008deb2954b06b6c0872a6c59a65e.pngfig1 fig2
3e99dfe497d74f14a3548e24d071a657.pngfig1

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xSkyFoXx, 2015-09-20
@Ed1024

If you want to create a matrix with preset values, better use the following list generator:
And the problem in your code is that ['0' * 5] = ['00000'] and not ['0', '0', ' 0', '0', '0'], so you can't refer to the 1st element.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question