You can treat lists of a list (nested list) as matrix in Python. However, there is a better way of working Python matrices using NumPy package. NumPy is a package for scientific computing which has support for a powerful N-dimensional array object matrix in python example input matrix in python, how to print matrix in python, matrix in python without numpy, create matrix in python using for loop, matrix multiplication in python, 3*3 matrix in python, transpose of a matrix in python,