Skip to content
Advertisement

How to create multidimensional array in python 3 [closed]

in PHP I do the following:

JavaScript

and the result is:

JavaScript

so in python how do i do it?

UPDATE

Thanks for helping me, my question is solved, and by the time I update here there are 3 answers and I found all 3 answers did what I wanted and I decided choose and do it this way

JavaScript

Because for me, I find it the most concise

Advertisement

Answer

JavaScript

output

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement