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

Java - Error: no suitable method found for add(int, java.lang.String) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -