Answer: N = 5ar = [0]*Nprint(ar)
Output[0, 0, 0, 0, 0]
Explanation: Python provides many ways to create 2-dimensional lists/arrays. However one must know the differences between these ways because they can create complications in code that can be very difficult to trace out. Let’s start by looking at common ways of creating a 1d array of size N initialized with 0s.