Source Code:
(back to article)
two_d_array = [list(range(3)) for y in range(2)] print(two_d_array)
Result:
Report an issue