-
Write a function
two_dimensional_list()
, that takes 2 digits (x, y) as input and generates a 2-dimensional list or matrix. -
The element value in the
i
row andj
column of the list should bei*j
(their index values).
two_dimensional_list(3,5)
[[0, 0, 0, 0, 0], [0, 1, 2, 3, 4], [0, 2, 4, 6, 8]]