![lilycious3986](/avatars/12108.jpg)
lilycious3986
04.04.2020 •
Computers and Technology
Create_3D(H,W,D) Description: It creates a list of list of list of ints (i.e. a 3D matrix) with dimensions HxWxD. The value of each item is the sum of its three indexes. Parameters: H (int) is the height, W (int) is the widht, D (int) is the depth Return value: list of list of list of int Example: create_3D(2,3,4) → [[[0,1,2],[1,2,3]], [[1,2,3],[2,3,4]], [[2,3,4],[3,4,5]], [[3,4,5],[4,5,6]]] copy_3D(xs) Description: It creates a deep copy of a 3D matrix xs. Make sure the copy you make is not an alias or a shallow copy. Parameters: xs (list of list of list of int)
Solved
Show answers
More tips
- H Health and Medicine Is Folic Acid a Necessary Vitamin?...
- W Work and Career How to Start Your Own Business: Tips and Recommendations...
- S Society and Politics 10 Tips for Boosting Your Self-Esteem...
- C Computers and Internet How to Create a Folder on Your iPhone?...
- G Goods and services How to sew a ribbon: Tips for beginners...
- F Food and Cooking How to Make Mayonnaise at Home? Secrets of Homemade Mayonnaise...
- C Computers and Internet Which Phone is Best for Internet Surfing?...
- F Food and Cooking Everything You Need to Know About Pasta...
- C Computers and Internet How to Choose a Monitor?...
- H Horoscopes, Magic, Divination Where Did Tarot Cards Come From?...
Answers on questions: Computers and Technology
- C Computers and Technology How can AI be used for future predictionspls answer fast...
- S Social Studies Please I have test this is NOT free points...
- M Mathematics An image of a book shown on a website is 1.5 inches wide and 3 inches tall on a computer monitor. The actual book is 9 inches wide. 1. What scale is being used for the image?...
- M Mathematics X²-4x+3=0, then what is the value of (x-2)²=?...
- P Physics What type of medium (solids, liquids, or gases) do sound waves travel fastest in?...
- P Physics There are four forces acting on a car. The forces are: a. 325N to the north b. 175N to the south c. 465N to the east d. 255N to the west Find the net force acting on the car....
- M Mathematics I need help with algebra Hw...
- S Social Studies The result of the Great Compromise was a...
- B Biology A 9:3:3:1 ratio is characteristic of the: a) F2 generation of a monohybrid cross...
- S SAT What 6 letter word can u make out of snowflake this is for my 8 yr old nephew...
Ответ:
See explaination for the details.
Explanation:
Code:
def create_3D(H, W, D):
result = []
for i in range(D):
result.append([])
for j in range(H):
result[i].append([])
for k in range(W):
result[i][j].append(i+j+k)
return result
print(create_3D(2, 3, 4))
Check attachment for onscreen code.
Ответ:
the server would not be working.