fork(1) download
  1. rows = 10 #input()
  2. cols = 5 #input()
  3.  
  4. ar = [[0] * cols] * rows
  5.  
  6. print(ar)
Success #stdin #stdout 0.04s 9984KB
stdin
Standard input is empty
stdout
[[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]]