147k views
1 vote
9.6 code practice edhesive

9.6 code practice edhesive-example-1

2 Answers

5 votes

Answer: i got 50% for this I don’t know what to fix

Step-by-step explanation:

9.6 code practice edhesive-example-1
User John Lui
by
5.1k points
3 votes

Answer:

def printIt(ar):

for row in range(len(ar)):

for col in range(len(ar[0])):

print(ar[row][col], end=" ")

print("")

N= []

for r in range(4):

N.append([])

for r in range(len(N)):

value = 1

for c in range(5):

N[r].append(value)

value = value +1

printIt(N)

print("")

newValue = 1

for r in range(len(N)):

for c in range(len(N[0])):

N[r][c] = newValue

newValue = newValue + 1

printIt(N)

Explanation: Ez clap

User Shubham Sejpal
by
4.7k points