Refer to the below code:
rows, cols = 3,6
my_matrix = [([0]*cols) for i in range(rows)]
Explanation:
This [0]*cols) produces a one-dimensional list of zeros.
For more information regarding the same, do refer to the Python tutorial that will help you out in understanding the topic in a better way.