jeudi 31 décembre 2020

How i can fill an half array random with number 1

we have an array p = [[none]*5]*6 and we want to fill it with number 1

something like this:

 [[1, none, none, 1, 1],[none, 1, none, 1, none],[none, 1, 1, 1, none], [1, none, 1, none, 1], [none, 1, none, 1, none],[1, none, 1, none, none]]



Aucun commentaire:

Enregistrer un commentaire