5. Data Structures — Python 3.11.4 documentation

PHOTO EMBED

Sun Aug 13 2023 08:19:47 GMT+0000 (Coordinated Universal Time)

Saved by @devan3068

>>> matrix = [
...     [1, 2, 3, 4],
...     [5, 6, 7, 8],
...     [9, 10, 11, 12],
... ]
content_copyCOPY

https://docs.python.org/3/tutorial/datastructures.html#list-comprehensions