Can you annotate this code. cars = ["Buick","Ford","Honda"] colors = ["Red","Blue","Black","White","Green"] aType = ["Sedan","SUV","Sports","Coupe","Truck"] arr = [[0 for i in range(len(cars))] for j...


Can you annotate this code.


cars = ["Buick","Ford","Honda"]
colors = ["Red","Blue","Black","White","Green"]
aType = ["Sedan","SUV","Sports","Coupe","Truck"]


arr = [[0 for i in range(len(cars))] for j in range(len(cars)*len(colors))]
for i in range(0, len(colors)*len(cars)):
for j in range(0, len(cars)):
if j == 0:
arr[i][j] = cars[int(i/5)]
if j == 1:
arr[i][j] = colors[int(i % 5)]
if j == 2:
arr[i][j] = aType[int(i % 5)]
for i in range(0, len(arr)):
print(arr[i])



Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here