13. What is the output message of the following code? import numpy as np an_array = np.array([[1, 2], [3, 4]]) result = an_array.sum() - an_array.sum(axis=1) A. 0 B. array([7, 0]) C. array([6, 0]) D. array([7, 3])
Added by Patricia R.
Close
Step 1
First, we import the numpy library and create a 2D array called "an_array" with the values [[1, 2], [3, 4]]. Show more…
Show all steps
Your feedback will help us improve your experience
Nick Collins and 65 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
what is the output ?
Lien L.
what is the output?
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Watch the video solution with this free unlock.
EMAIL
PASSWORD