Answer:
# Define the list N
N = [[0 for j in range(5)] for i in range(4)]
# Populate the list with the initial values
for i in range(4):
for j in range(5):
N[i][j] = 2*j + 1
# Define the subprogram to print the list
def printList(lst):
for i in range(len(lst)):
for j in range(len(lst[i])):
print(lst[i][j], end=' ')
print()
# Print the initial values of the list
printList(N)
Output
1 3 5 7 9
1 3 5 7 9
1 3 5 7 9
1 3 5 7 9
--------------------------------------------------------------------
# Update the values of the list
for i in range(4):
for j in range(5):
N[i][j] = 2*i + 1
# Print the new values of the list
printList(N)
Output
1 1 1 1 1
3 3 3 3 3
5 5 5 5 5
7 7 7 7 7
Step-by-step explanation: