python - Trying to create n*m matrix -


Trying to create

Board (2, 3)

whose As a result

[[nobody, none, no one], [none, none, none]]

However, I only have 6 none

Usually, this is done:

  def none_board (n, m ): [[None] for the [[Range (M)] for the code   

in the range (n)]

  L1 + = <2 pre>  l1.append (l2)    

Comments

Popular posts from this blog

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

php - Sorting an multidimension array using usort fails -

Simple file compression in C -