Q:

Write a Python program to create a multidimensional list (lists of lists) with zeros

0

Write a Python program to create a multidimensional list (lists of lists) with zeros. 

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

nums = []

for i in range(3):

    nums.append([])

    for j in range(2):

        nums[i].append(0)
print("Multidimensional list:")
print(nums)

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now