Explore Connect Documentation
Snippets
1
2
3
4
# create a 3x5 matrix of 1's
matrix = [[1 for j in range(5)] for i in range(3)]
print(matrix)
Press desired key combination and then press ENTER.