Question

write a python program that will return number of rows and columns in a 3d matrix...

write a python program that will return number of rows and columns in a 3d matrix in the form [rows,cols]
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Imagine a 3D array like a cube or a cuboid. Let us consider a cuboid of 3 rows 3 columns and a depth of 2  as shown below:

Using list comprehension in Python we can build the above array as follows:

The following operations show the depth, number of rows and number of columns:

Add a comment
Know the answer?
Add Answer to:
write a python program that will return number of rows and columns in a 3d matrix...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT