Explore
Connect
Documentation
Snippets
Log in
Sign up
1
2
3
# create a 3x5 matrix of 1's
matrix
=
[[
1
for
j
in
range
(
5
)]
for
i
in
range
(
3
)]
print
(
matrix
)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Run